npm-groovy-lint 16.1.1 → 16.1.2-beta-202601241018.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/README.md +8 -2
- package/lib/codenarc-caller.js +3 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ Any **question**, **problem** or **enhancement request** ? Ask [**here**](https:
|
|
|
154
154
|
|
|
155
155
|
- If you have issues with v9, install previous version with `npm install -g npm-groovy-lint@8.2.0`
|
|
156
156
|
- Node.js >= 12 is required to run this package. If you can't upgrade, you can use [nvm](https://github.com/nvm-sh/nvm) to have [different node versions on your computer](https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/)
|
|
157
|
-
- If you do not have
|
|
157
|
+
- Java 17 or higher is required. If you do not have a compatible Java version installed on your computer, npm-groovy-lint will install Java 17 for you, so the first run may be long.
|
|
158
158
|
|
|
159
159
|
## Configuration
|
|
160
160
|
|
|
@@ -412,9 +412,15 @@ Run with additional flags by simply appending them at after docker image name:
|
|
|
412
412
|
docker run --rm -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp nvuillam/npm-groovy-lint --failon warning --verbose
|
|
413
413
|
```
|
|
414
414
|
|
|
415
|
+
Use the GitHub Container Registry image by replacing the image name:
|
|
416
|
+
|
|
417
|
+
```shell
|
|
418
|
+
docker run --rm -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp ghcr.io/nvuillam/npm-groovy-lint --failon warning --verbose
|
|
419
|
+
```
|
|
420
|
+
|
|
415
421
|
### Other
|
|
416
422
|
|
|
417
|
-
You can run npm-groovy-lint using its [official
|
|
423
|
+
You can run npm-groovy-lint using its [official Docker Hub image](https://hub.docker.com/r/nvuillam/npm-groovy-lint) or its [GHCR image](https://github.com/nvuillam/npm-groovy-lint/pkgs/container/npm-groovy-lint)
|
|
418
424
|
|
|
419
425
|
## Use as module
|
|
420
426
|
|
package/lib/codenarc-caller.js
CHANGED
|
@@ -32,16 +32,17 @@ export class CodeNarcCaller {
|
|
|
32
32
|
|
|
33
33
|
execTimeout = 240000;
|
|
34
34
|
|
|
35
|
+
// Java version requirements: minimum 17, maximum 24 (accepts any Java 17+ version)
|
|
35
36
|
javaCallerOptions = {
|
|
36
37
|
codeNarcServer: {
|
|
37
38
|
minimumJavaVersion: 17,
|
|
38
|
-
maximumJavaVersion:
|
|
39
|
+
maximumJavaVersion: 24,
|
|
39
40
|
rootPath: __dirname,
|
|
40
41
|
jar: "java/CodeNarcServer.jar",
|
|
41
42
|
},
|
|
42
43
|
codeNarcJava: {
|
|
43
44
|
minimumJavaVersion: 17,
|
|
44
|
-
maximumJavaVersion:
|
|
45
|
+
maximumJavaVersion: 24,
|
|
45
46
|
rootPath: __dirname,
|
|
46
47
|
jar: "java/CodeNarcServer.jar",
|
|
47
48
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-groovy-lint",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.2-beta-202601241018.0",
|
|
4
4
|
"description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files",
|
|
5
5
|
"exports": "./lib/groovy-lint.js",
|
|
6
6
|
"type": "module",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"fs-extra": "^11.0.0",
|
|
61
61
|
"glob": "^13.0.0",
|
|
62
62
|
"import-fresh": "^3.2.1",
|
|
63
|
-
"java-caller": "^4.2
|
|
63
|
+
"java-caller": "^4.3.2",
|
|
64
64
|
"js-yaml": "^4.1.0",
|
|
65
65
|
"node-sarif-builder": "^3.3.1",
|
|
66
66
|
"optionator": "^0.9.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"adm-zip": "^0.5.10",
|
|
76
76
|
"diff": "^8.0.0",
|
|
77
77
|
"eslint": "^9.0.0",
|
|
78
|
-
"globals": "^
|
|
78
|
+
"globals": "^17.0.0",
|
|
79
79
|
"handlebars": "^4.7.8",
|
|
80
80
|
"mocha": "^11.0.0",
|
|
81
81
|
"npm-run-all2": "^8.0.0",
|