Shivaprashanth471/sonarjs


Language: Python


sonar-js

Simple demo project to run a Sonar analysis on a js project.

Prerequisites

The actual configuration in sonar-project.properties assumes the Sonar server is running on http://localhost:9500.

You can change that by specifying the right values in sonar-project.properties (see http://docs.codehaus.org/display/SONAR/Analysis Parameters).

Running

  • Install node dependencies with npm install
  • Run the ci task with make ci
  • Check the results : http://localhost:9500 or wherever.

Tasks in the Makefile

  • Clean with make clean
  • Run tests with make test
  • Run tests and generate a xunit compatible file with make xunit
  • Run coverage analysis and generate a lcov compatible file with make coverage
  • Run coverage analysis and generate a cobertura compatible file with make coverage
  • Run jshint with make jshint
  • Run jhsint and generate a checkstyle compatible file with make checkstyle
  • Run the Sonar analysis with make sonar
  • Run a CI related set of tasks make ci

All generated files are generated in the reports folder.

Only tested on linux, you may have to adapt some stuff on other platforms.

Project Statistics

Sourcerank 1
Repository Size 491 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 2
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Xavier Seignard Shiva Prashanth

Something wrong with this page? Make a suggestion

Last synced: 2022-12-28 09:15:00 UTC

Login to resync this repository