Description / Features
The plugin enables analysis of Web projects within SonarQube. Currently JSP and JSF are supported. Some initial support is provided for Ruby templating (erb files).
It is compatible with the Issues Report plugin to run pre-commit local analysis.
- Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
- Restart the SonarQubeserver
Run an Analysis with the SonarQubeRunner (Recommended Way)
To run an analysis of your Web project, use the SonarQube Runner.
Run an Analysis with the other Analyzers
Complexity of the web page is measured by counting the decision tags (such as if and forEach) and boolean operators in expressions ("&&" and "||"), plus one for the body of the document. It is a measure of the minimum number possible paths to render the page.
The decision tags and the operators are configurable. For details see rules library
Duplication is counted by comparing tokens. Duplication is reported if more than a minimum amount of tokens are replicated (in the same file or another file). The default minimum tokens is set to 70.
Comments are counted by adding the lines for server side and client side comments.
There are about 20 checks in the library. Please read the documentation of the checks on the page Web Rules Library.
The ruleset is inspired on the following standards and guidelines:
- More support for WCAG, webrichtlijnen
- Enhanced validation of unified expressions (using JSFUnit?)
- Dependency analysis
Release 2.0 (not yet released) (39 issues)
Release 1.2 (13 issues)
Release 1.1 (6 issues)
Release 1.0.2 (1 issues)
|SONARPLUGINS-857||XMLProfileParser shouldn't be instantiated by plugin|
Release 1.0.1 (1 issues)
Release 1.0 (21 issues)