sonar-scan 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,9 +3,18 @@ sonar-scan
3
3
 
4
4
  Wrap [SonarQube Scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner) as a node module.
5
5
 
6
+ I have teste also on Angular, React & Vue.js projects
7
+
8
+ # Versions
9
+ | version | [sonar-scanner-cli](https://mvnrepository.com/artifact/org.sonarsource.scanner.cli/sonar-scanner-cli) |
10
+ |----------|-----------------------|
11
+ | 1.0.0 | 3.1.0.1141 |
12
+ | 1.0.1 | 4.8.0.2856 |
13
+ | latest | 6.2.1.4610 |
14
+
6
15
  # Installation
7
16
 
8
- This plugin requires JAVA runtime installed
17
+ This plugin requires JAVA 11 installed
9
18
 
10
19
  You can install sonar-scan as a development dependency and add it as a script property in your package.json.
11
20
 
@@ -13,6 +22,7 @@ You can install sonar-scan as a development dependency and add it as a script pr
13
22
  npm i sonar-scan --save-dev
14
23
  ```
15
24
 
25
+ Node:
16
26
  ```json
17
27
  {
18
28
  "scripts": {
@@ -20,6 +30,14 @@ npm i sonar-scan --save-dev
20
30
  }
21
31
  }
22
32
  ```
33
+ Angular, React & Vue.js projects:
34
+ ```json
35
+ {
36
+ "scripts": {
37
+ "sonar-scan": "sonar-scanner"
38
+ }
39
+ }
40
+ ```
23
41
 
24
42
  ```shell
25
43
  npm run sonar-scan
@@ -28,4 +46,4 @@ npm run sonar-scan
28
46
 
29
47
  https://github.com/bcaudan/node-sonar-scanner
30
48
 
31
- This library is not updated currentlly for a few years but we need & support it
49
+ This library is not updated for a few years but we need & support it
package/bin/sonar-scanner CHANGED
@@ -28,7 +28,7 @@ sonar_scanner_home=$(dirname "$script_path")/..
28
28
  # make it fully qualified
29
29
  sonar_scanner_home=$(cd "$sonar_scanner_home" && pwd -P)
30
30
 
31
- jar_file=$sonar_scanner_home/lib/sonar-scanner-cli-3.1.0.1141.jar
31
+ jar_file=$sonar_scanner_home/lib/sonar-scanner-cli-6.2.1.4610.jar
32
32
 
33
33
  # check that sonar_scanner_home has been correctly set
34
34
  if [ ! -f "$jar_file" ] ; then
@@ -68,7 +68,7 @@ set PROJECT_HOME=%CD%
68
68
  @REM remove trailing backslash, see https://groups.google.com/d/msg/sonarqube/wi7u-CyV_tc/3u9UKRmABQAJ
69
69
  IF %PROJECT_HOME:~-1% == \ SET PROJECT_HOME=%PROJECT_HOME:~0,-1%
70
70
 
71
- %JAVA_EXEC% -Djava.awt.headless=true %SONAR_SCANNER_DEBUG_OPTS% %SONAR_SCANNER_OPTS% -cp "%SONAR_SCANNER_HOME%\lib\sonar-scanner-cli-3.1.0.1141.jar" "-Dscanner.home=%SONAR_SCANNER_HOME%" "-Dproject.home=%PROJECT_HOME%" org.sonarsource.scanner.cli.Main %*
71
+ %JAVA_EXEC% -Djava.awt.headless=true %SONAR_SCANNER_DEBUG_OPTS% %SONAR_SCANNER_OPTS% -cp "%SONAR_SCANNER_HOME%\lib\sonar-scanner-cli-6.2.1.4610.jar" "-Dscanner.home=%SONAR_SCANNER_HOME%" "-Dproject.home=%PROJECT_HOME%" org.sonarsource.scanner.cli.Main %*
72
72
  if ERRORLEVEL 1 goto error
73
73
  goto end
74
74
 
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonar-scan",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Wrap sonar-scan as a node module",
5
5
  "keywords": [
6
6
  "node",