You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A sample project to test SonarQube and ESLint plugins of **creedengo-javascript**.
2
+
3
+
👉 See [creedengo-javascript README](../README.md) to have more information.
4
+
5
+
## Purpose of this project
6
+
7
+
This project allows to test the rules edited by the ecoCode project for the JavaScript language.\
8
+
The files in this repository contain both compliant and non-compliant code.
9
+
10
+
### 1. Setup local environment
11
+
12
+
First, follow [this complete guide](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/HOWTO.md#installing-local-environment-local-sonarqube) to install your local SonarQube development environment. \
13
+
Then, check that _creedengo_ rules are enabled in the quality profile that will be used during the analysis.
14
+
15
+
You will also need some JavaScript tools installed on your computer:
16
+
17
+
- A supported version of Node.js
18
+
- Yarn (install it globally with `npm install -g yarn`)
19
+
20
+
### 2. Send Sonar metrics to local SonarQube
21
+
22
+
Use the following Shell script which will do the job for you:
On your SonarQube instance, check if each JavaScript file contains the rule error defined for this class (you can search for tag `eco-design` rule on a special file).
0 commit comments