Giter VIP home page Giter VIP logo

sonar-js's Introduction

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:9000.

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:9000 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.

sonar-js's People

Contributors

xseignard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.