npm-groovy-lint 9.0.0 → 9.1.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## UNRELEASED
4
4
 
5
+ ## [9.1.0] 2021-12-14
6
+
7
+ - Upgrade log4j dependencies because of [security issue](https://unit42.paloaltonetworks.com/apache-log4j-vulnerability-cve-2021-44228/) (#194)
8
+
5
9
  ## [9.0.0] 2021-09-30
6
10
 
7
11
  - Upgrade to [CodeNarc v2.2.0](https://github.com/CodeNarc/CodeNarc/releases/tag/v2.2.0)
package/README.md CHANGED
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## Groovy & Jenkinsfile Linter, Formatter and Auto-fixer
18
18
 
19
+ _**New: The [article about the story of npm-groovy-lint](https://nicolas.vuillamy.fr/a-groovy-journey-to-open-source-during-covid-19-npm-groovy-lint-8d88c7eecebc), and why you should dive in open-source community !**_
20
+
19
21
  Based on [CodeNarc](http://codenarc.github.io/CodeNarc/) , this out of the box package allows to **track groovy errors** and **correct a part of them**
20
22
 
21
23
  - Use option **--format** to format & prettify source code
@@ -344,13 +346,13 @@ node {
344
346
  Run with default settings
345
347
 
346
348
  ```shell
347
- docker run -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp nvuillam/npm-groovy-lint
349
+ docker run --rm -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp nvuillam/npm-groovy-lint
348
350
  ```
349
351
 
350
352
  Run with additional flags by simply appending them at after docker image name:
351
353
 
352
354
  ```shell
353
- docker run -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp nvuillam/npm-groovy-lint --failon warning --verbose
355
+ docker run --rm -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp nvuillam/npm-groovy-lint --failon warning --verbose
354
356
  ```
355
357
 
356
358
  ### Other
@@ -39,7 +39,7 @@ class CodeNarcCaller {
39
39
  rootPath: __dirname,
40
40
  mainClass: "org.codenarc.CodeNarc",
41
41
  classPath:
42
- "java/CodeNarc-2.2.0.jar:java/groovy/lib/groovy-3.0.9.jar:java/groovy/lib/groovy-templates-3.0.9.jar:java/groovy/lib/groovy-xml-3.0.9.jar:java/groovy/lib/groovy-json-3.0.9.jar:java/groovy/lib/groovy-ant-3.0.9.jar:java/groovy/lib/ant-1.10.11.jar:java/groovy/lib/ant-launcher-1.10.11.jar:java/slf4j-api-1.7.9.jar:java/log4j-slf4j-impl-2.13.0.jar:java/log4j-api-2.13.0.jar:java/log4j-core-2.13.0.jar:java/gmetrics-1.1.jar:java/*"
42
+ "java/CodeNarc-2.2.0.jar:java/groovy/lib/groovy-3.0.9.jar:java/groovy/lib/groovy-templates-3.0.9.jar:java/groovy/lib/groovy-xml-3.0.9.jar:java/groovy/lib/groovy-json-3.0.9.jar:java/groovy/lib/groovy-ant-3.0.9.jar:java/groovy/lib/ant-1.10.11.jar:java/groovy/lib/ant-launcher-1.10.11.jar:java/slf4j-api-1.7.9.jar:java/log4j-slf4j-impl-2.16.0.jar:java/log4j-api-2.16.0.jar:java/log4j-core-2.16.0.jar:java/gmetrics-1.1.jar:java/*"
43
43
  }
44
44
  };
45
45
 
@@ -105,12 +105,16 @@ class CodeNarcCaller {
105
105
  status: 9
106
106
  };
107
107
  } else {
108
- console.error(c.red(
109
- "CodeNarcServer unexpected error:\n" +
110
- JSON.stringify(e, null, 2) +
111
- "\n" +
112
- (e.response && e.response.data && e.response.data.errorDtl ? JSON.stringify(e.response.data.errorDtl, null, 2) : undefined)
113
- ));
108
+ console.error(
109
+ c.red(
110
+ "CodeNarcServer unexpected error:\n" +
111
+ JSON.stringify(e, null, 2) +
112
+ "\n" +
113
+ (e.response && e.response.data && e.response.data.errorDtl
114
+ ? JSON.stringify(e.response.data.errorDtl, null, 2)
115
+ : undefined)
116
+ )
117
+ );
114
118
  }
115
119
  this.serverStatus = "error";
116
120
  return {
Binary file
Binary file
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "npm-groovy-lint",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "lint:fix": "eslint **/*.js --fix && prettier --write \"./lib/**/*.{js,jsx,json}\" --tab-width 4 --print-width 150",
8
- "groovy:run-server-from-source": "npm run dev:kill-server && groovy -cp \"lib/java/CodeNarc-2.2.0.jar;lib/java/groovy/lib/groovy-3.0.9.jar;lib/java/groovy/lib/groovy-templates-3.0.9.jar;lib/java/groovy/lib/groovy-xml-3.0.9.jar;lib/java/groovy/lib/groovy-json-3.0.9.jar;lib/java/groovy/lib/groovy-ant-3.0.9.jar;lib/java/groovy/lib/ant-1.10.11.jar;lib/java/groovy/lib/ant-launcher-1.10.11.jar;lib/java/slf4j-api-1.7.9.jar;lib/java/log4j-slf4j-impl-2.13.0.jar;lib/java/log4j-api-2.13.0.jar;lib/java/log4j-core-2.13.0.jar;lib/java/gmetrics-1.1.jar\" groovy/src/main/com/nvuillam/CodeNarcServer.groovy --server",
8
+ "groovy:run-server-from-source": "npm run dev:kill-server && groovy -cp \"lib/java/CodeNarc-2.2.0.jar;lib/java/groovy/lib/groovy-3.0.9.jar;lib/java/groovy/lib/groovy-templates-3.0.9.jar;lib/java/groovy/lib/groovy-xml-3.0.9.jar;lib/java/groovy/lib/groovy-json-3.0.9.jar;lib/java/groovy/lib/groovy-ant-3.0.9.jar;lib/java/groovy/lib/ant-1.10.11.jar;lib/java/groovy/lib/ant-launcher-1.10.11.jar;lib/java/slf4j-api-1.7.9.jar;lib/java/log4j-slf4j-impl-2.16.0.jar;lib/java/log4j-api-2.16.0.jar;lib/java/log4j-core-2.16.0.jar;lib/java/gmetrics-1.1.jar\" groovy/src/main/com/nvuillam/CodeNarcServer.groovy --server",
9
9
  "groovy:build": "npm run dev:kill-server && groovyc -cp \"./lib/java*\" --encoding utf-8 ./groovy/src/main/com/nvuillam/CodeNarcServer.groovy -d ./tmp && cd ./tmp && jar -cvfm ./../lib/java/CodeNarcServer.jar ./../MANIFEST.txt ./com/nvuillam/*.class && cd ..",
10
10
  "test": "npm run dev:kill-server && mocha \"test/**/*.test.js\"",
11
11
  "test:coverage": "nyc npm run test",
@@ -64,14 +64,15 @@
64
64
  "uuid": "^8.2.0"
65
65
  },
66
66
  "devDependencies": {
67
- "babel-eslint": "^10.0.3",
67
+ "@babel/core": "^7.16.0",
68
+ "@babel/eslint-parser": "^7.16.3",
68
69
  "diff": "^4.0.2",
69
- "eslint": "^6.8.0",
70
- "eslint-config-standard": "^14.1.0",
71
- "eslint-plugin-import": "^2.20.1",
72
- "eslint-plugin-node": "^11.0.0",
73
- "eslint-plugin-promise": "^4.2.1",
74
- "eslint-plugin-standard": "^4.0.1",
70
+ "eslint": "^8.2.0",
71
+ "eslint-config-standard": "^16.0.3",
72
+ "eslint-plugin-import": "^2.25.3",
73
+ "eslint-plugin-node": "^11.1.0",
74
+ "eslint-plugin-promise": "^5.1.1",
75
+ "eslint-plugin-standard": "^5.0.0",
75
76
  "mocha": "^7.0.1",
76
77
  "nyc": "^15.1.0",
77
78
  "prettier": "1.19.1",
Binary file
Binary file