Skip to content

0.4.0 — api:lint from the IDE

Choose a tag to compare

@dskripchenko dskripchenko released this 19 Aug 06:46
· 23 commits to main since this release

Added

  • api:lint runs from the IDE, in a Lint tab beside the endpoint list, or
    from Tools → Run api:lint.

    Not for the convenience of not opening a terminal. The command carries
    twenty-eight rules against the ten implemented here, and writing the other
    eighteen in Kotlin would create a second truth that drifts from the first —
    the very thing this plugin looks for in other people's code. So the fast
    checks run as you type, and the whole set is asked of the application.

    Findings are clickable: their address is version · controller.action, which
    the route map turns into a method, so a double click opens the docblock the
    finding is about.

    It needs artisan and a php. Where they are missing the reason is said in
    words — availability is a file question, deliberately, so that a menu being
    built does not depend on the index being ready.

    php is looked for in the login shell's environment rather than the
    launcher's. On macOS an IDE started from Finder inherits neither the shell's
    PATH nor its version manager, so the first version of this told a developer
    whose terminal runs php artisan all day that there was no PHP on the
    machine.