In the Python world there are multiple static code analysis tools that can be easily extended with custom checks via writing plugins or extensions, for example:
In the JavaScript world, as far as I understand, jshint
is the number one tool for static code analysis. I've been using it for a while and it definitely helps to find lots of code style violations, but, recently, I've encountered the need to extend jshint
with a custom check. How can I do that? Is it extendable?
I've looked through the documentation and the only thing I've found is how to write a custom reporter which is not what I'm looking for.
As a workaround, I guess I can fork the jshint
repo, implement the check, and use the fork in the project maintaining updates from the upstream.