SonarJS is a static code analyser for the JavaScript language. It will allow you to produce stable and easily supported code by helping you to find and to correct bugs, vulnerabilities and smells in your code.
Try out SonarTS, our analyzer for TypeScript!
- Advanced rules based on control flow and data flow analysis
- ~190 rules (including ~60 bug detection)
- Compatible with ECMAScript 2015-2017
- React JSX, Flow and Vue support
- Metrics (complexity, number of lines etc.)
- Import of test coverage reports
- Custom rules
- Get Started
- Advanced Configuration
- Configuring Rules Profile
- Writing Custom Rules
- FAQ
- Demo project analysis
If you have a question on how to use analyser (and the docs don't help you) ask it on Stack Overflow with sonarjs
tag.
If you want to report a bug, request a feature or provide other kind of feedback, create a GitHub issue.
To provide feedback or to report a bug for a SonarQube platform send an email to [email protected]
, the SonarQube Google Group. Please do not forget to specify the details of your request, as well as analysers' and SonarQube versions.
We have a twitter account where you can follow the development of this plugin.
To request a new feature, create a GitHub issue. Even if you plan to implement it yourself and submit it back to the community, please create an issue to be sure that we can follow up on it.
To submit a contribution, create a pull request for this repository. Please make sure that you follow our code style and all tests are passing (Travis build is created for each PR).
If you have an idea for a rule but you are not sure that everyone needs it you can implement a custom rule available only for you.
Copyright 2011-2017 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0