Description / Features
The plugin provides static code enables analysis of web files Web projects within Sonar. Currently JSP and JSF are supported. Some initial support is provided for Ruby templating (erb files).
The following metrics are supported:
- sizing (files, lines of code)
- rules compliancy
The plugin scans the following files by default: .xhtml, .jspf, .jsp. The file extensions are configurable.
The plugin imports the source code in Sonar, calculates measurements and scans the code for violations, duplications and complexity. The checks are configurable in the Sonar rules repository.
It is compatible with the Issues Report plugin to run pre-commit local analysis.
- Install the Web plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server