Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
SonarJS: JavaScript Analyzer for SonarQube
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add PR template (#827) Nov 9, 2017
docs Update links in profile doc (#1144) Jan 11, 2019
eslint-bridge Prepare for 5.2 development iteration (#1213) Mar 11, 2019
its Update ITs to not use deprecated sonar.profile property (#1219) Mar 21, 2019
javascript-checks-testkit
javascript-checks Prepare for 5.2 development iteration (#1213) Mar 11, 2019
javascript-frontend Prepare for 5.2 development iteration (#1213) Mar 11, 2019
nodejs-utils
sonar-javascript-plugin Prepare for 5.2 development iteration (#1213) Mar 11, 2019
.cix.yml Remove performance tests (#1122) Dec 11, 2018
.gitattributes repair tests for Windows enviroment (#889) Dec 14, 2017
.gitignore SONARJS-449 Add Rule: Unary operators "+" and "-" should not be used … Aug 21, 2015
.gitmodules
.travis.yml
LICENSE.txt Add License and copyright files (#417) Dec 23, 2016
NOTICE.txt Replace copyright.txt with NOTICE.txt Feb 22, 2017
README.md Update Twitter link (#1105) Oct 4, 2018
check-license-compliance.sh
cix.sh
pom.xml Prepare for 5.2 development iteration (#1213) Mar 11, 2019
sonarpedia.json Update metadate last change data (#1212) Mar 11, 2019
travis.sh update travis utils to version 55 Mar 11, 2019

README.md

SonarJS Build Status Quality Gate Coverage twitter NPM version

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.

➡️ Have some feedback?

➡️ SonarTS, our analyzer for TypeScript

➡️ eslint-plugin-sonarjs, our plugin for ESLint

Features

  • 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
  • Import of ESLint issues
  • Custom rules

Documentation

Have question or feedback?

GitHub issues

If you want to report a bug, request a feature or provide other kind of feedback, create a GitHub issue.

SonarQube Community Forum

You can also use SonarQube Community Forum. Please do not forget to specify the details of your request, as well as analysers' and SonarQube versions.

Twitter

We have a twitter account where you can follow the development of this plugin.

Contributing

1. GitHub issue

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.

2. Pull Request

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).

Custom Rules

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.

License

Copyright 2011-2017 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0

You can’t perform that action at this time.