npm-groovy-lint 14.2.0 → 14.2.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 +1 -1
- package/lib/filter.js +1 -1
- package/lib/java/CodeNarcServer.jar +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Any **question**, **problem** or **enhancement request** ? Ask [**here**](https:
|
|
|
48
48
|
| -o<br/> --output | String | Output format (txt,json,sarif,html,xml), or path to a file with one of these extensions<br/> Default: `txt`<br/> Examples:<br/> - `"txt"`<br/> - `"json"`<br/> - `"./logs/myLintResults.txt"`<br/> - `"./logs/myLintResults.sarif"`<br/> - `"./logs/myLintResults.html"`<br/> - `"./logs/myLintResults.xml"`<br/>Note: HTML and XML are directly from CodeNarc so using these formats will disable many npm-groovy-lint features |
|
|
49
49
|
| -l<br/> --loglevel | String | Log level (error,warning or info)<br/>Default: info |
|
|
50
50
|
| --failon | String | Defines the error level where CLI will fail (return code = 1). error,warning,info or none. Each failure level includes the more critical ones. |
|
|
51
|
-
| -c<br/> --config | String | Custom path to [GroovyLint config file](#configuration), or preset config `recommended
|
|
51
|
+
| -c<br/> --config | String | Custom path to [GroovyLint config file](#configuration), or preset config `recommended\|recommended-jenkinsfile\|all`<br/> Default: Browse current directory to find `.groovylintrc.json\|js\|yml\|package.json` config file, or default npm-groovy-lint config if not defined.<br/>Note: command-line arguments have priority on config file properties |
|
|
52
52
|
| --parse | Boolean | Try to compile the source code and return parse errors (since v5.7.0, default to true, use --no-parse to deactivate) |
|
|
53
53
|
| --format | Boolean | Format source code |
|
|
54
54
|
| --fix | Boolean | Automatically fix problems when possible<br/> See [Auto-fixable rules](#auto-fixable-rules) |
|
package/lib/filter.js
CHANGED
|
@@ -23,7 +23,7 @@ function collectDisabledBlocks(allLines) {
|
|
|
23
23
|
if (matchingIndex > -1) {
|
|
24
24
|
disabledBlocks[matchingIndex].endLine = lineNb;
|
|
25
25
|
} else {
|
|
26
|
-
console.
|
|
26
|
+
console.warn(`npm-groovy-lint: Unable to find matching groovylint-disable for ${line}`);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
lineNb++;
|
|
Binary file
|