Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natura-cosmeticos/sonar-nodejs-java-plugin

This is an initial effort to generate custom measures for Node.js projects in SonarQube
https://github.com/natura-cosmeticos/sonar-nodejs-java-plugin

Last synced: about 5 hours ago
JSON representation

This is an initial effort to generate custom measures for Node.js projects in SonarQube

Awesome Lists containing this project

README

        

# Sonar NodeJS
SonarNodeJS is a code analyzer for NodeJS projects.

# Project status: work in progress

This project is currently a result of a POC.

## Features
* [Metrics](https://github.com/natura-cosmeticos/sonar-nodejs/blob/master/docs/metrics.md)

## Get Started

To build the plugin and run its unit tests, execute this command from the project's root directory to generate the jar file. After this put the jar file in $SONARQUBE_HOME/extensions/plugins, removing any previous versions of the same plugins:

```
mvn clean package
```

Building using docker, execute this command from the project's root directory:
```
docker run -v ~/.m2:/var/maven/.m2 -ti --name sonar-nodejs --rm -u `id -u`:`id -g` -v "$(pwd)":/usr/src/sonar-nodejs -w /usr/src/sonar-nodejs -e MAVEN_CONFIG=/var/maven/.m2 maven:3.6.1-jdk-8-alpine mvn clean package -Duser.home=/var/maven
```