0.4.0 — api:lint from the IDE
Added
-
api:lintruns 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
artisanand aphp. 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.phpis 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 runsphp artisanall day that there was no PHP on the
machine.