Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-groovy-lint

Package Overview
Dependencies
Maintainers
1
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-groovy-lint - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

5

CHANGELOG.md
# Changelog
## [8.0.2] 2020-11-26
- Fix documentation about --verbose and --version options
- Use GitHub action to deploy to NPM
## [8.0.1] 2020-11-19

@@ -4,0 +9,0 @@

0

lib/.groovylintrc-all.json

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ const Amplitude = require("amplitude");

@@ -0,0 +0,0 @@ // Call CodeNarc by server or java

@@ -0,0 +0,0 @@ // Shared functions

@@ -0,0 +0,0 @@ // Configuration file management

{
"codenarcRulesets": "RuleSet-1.groovy,RuleSet-2.groovy"
}

@@ -0,0 +0,0 @@ import groovy.json.*

@@ -0,0 +0,0 @@ import groovy.io.FileType

@@ -0,0 +0,0 @@ // Filter errors

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ // Additional definition for codenarc rules ( get position & available fix)

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ // Output management

@@ -0,0 +0,0 @@ // Assignment in condition

@@ -0,0 +0,0 @@ // Blank line before package

@@ -0,0 +0,0 @@ // Unused import

@@ -0,0 +0,0 @@ // Unused import

@@ -0,0 +0,0 @@ // Braces for class

@@ -0,0 +0,0 @@ // Braces for for loop

@@ -0,0 +0,0 @@ // Braces for if else

@@ -0,0 +0,0 @@ // Braces for method

@@ -0,0 +0,0 @@ // Braces for try catch finally

@@ -0,0 +0,0 @@ // Exception type must not be used

@@ -0,0 +0,0 @@ // Unused import

@@ -0,0 +0,0 @@ // Unused import

@@ -0,0 +0,0 @@ // Closing brace not alone

@@ -0,0 +0,0 @@ // Consecutive blank lines

@@ -0,0 +0,0 @@ // Duplicate import

@@ -0,0 +0,0 @@ // Missing else braces

@@ -0,0 +0,0 @@ // Explicit ArrayList instantiation

@@ -0,0 +0,0 @@ // Explicit LinkedList instantiation

@@ -0,0 +0,0 @@ // File ends without new line

@@ -0,0 +0,0 @@ // Missing if braces

@@ -0,0 +0,0 @@ // Indentation

@@ -0,0 +0,0 @@ const { containsExceptInsideString } = require("../utils");

@@ -0,0 +0,0 @@ // Indentation comments

@@ -0,0 +0,0 @@ // Insecure use of Random

@@ -0,0 +0,0 @@ // No use of Java.io classes

@@ -0,0 +0,0 @@ // Too many methods in a class

@@ -0,0 +0,0 @@ // Unused import

@@ -0,0 +0,0 @@ // Missing blank lines after import

@@ -0,0 +0,0 @@ // Missing blank lines after package

@@ -0,0 +0,0 @@ // No use of Java.util.date

@@ -0,0 +0,0 @@ // No tab character

@@ -0,0 +0,0 @@ // Space after catch

@@ -0,0 +0,0 @@ // Add space after a comma

@@ -0,0 +0,0 @@ // Space after for

@@ -0,0 +0,0 @@ // Space after if

@@ -0,0 +0,0 @@ // Space after opening brace

@@ -0,0 +0,0 @@ // Add space after a semicolon

@@ -0,0 +0,0 @@ // Space after switch

@@ -0,0 +0,0 @@ // Space after while

@@ -0,0 +0,0 @@ // Space around operators

@@ -0,0 +0,0 @@ // Space before opening brace

@@ -0,0 +0,0 @@ // Space before opening brace

@@ -0,0 +0,0 @@ // System.exit forbidden

@@ -0,0 +0,0 @@ // Trailing Whitespaces

@@ -0,0 +0,0 @@ // Unnecessary def in field declaration (static def)

@@ -0,0 +0,0 @@ // Unnecessary def in field declaration (static def)

@@ -0,0 +0,0 @@ // Unnecessary def in variable declaration

@@ -0,0 +0,0 @@ // Unnecessary dot class

@@ -0,0 +0,0 @@ // Unnecessary private on final method

@@ -0,0 +0,0 @@ // Unnecessary Groovy Import

@@ -0,0 +0,0 @@ // Unnecessary Groovy String

@@ -0,0 +0,0 @@ // Unnecessary package reference

@@ -0,0 +0,0 @@ // Unnecessary Parenthesis for method call with closure

@@ -0,0 +0,0 @@ // Unnecessary semi colon at the end of a line

@@ -0,0 +0,0 @@ // Unnecessary toString()

@@ -0,0 +0,0 @@ // Unused import

@@ -0,0 +0,0 @@ // Unused method parameter

@@ -0,0 +0,0 @@ // Unused variable

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin / env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ // Shared functions

4

package.json
{
"name": "npm-groovy-lint",
"version": "8.0.1",
"version": "8.0.2",
"description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files",

@@ -13,3 +13,3 @@ "main": "index.js",

"test:debug": "npm run dev:kill-server && mocha --reporter spec --inspect-brk \"lib/test/**/*.test.js\"",
"build": "node script-build-config-all.js && cp -f README.md docs/index.md",
"build": "node script-build-config-all.js && cp -f README.md docs/index.md && cp -f CHANGELOG.md docs/CHANGELOG.md",
"dev:kill-server": "npm-groovy-lint --killserver",

@@ -16,0 +16,0 @@ "dev:lint-install-local": "npm run dev:kill-server && npm run lint:fix && npm link --force",

@@ -47,3 +47,3 @@ <!-- markdownlint-disable MD013 MD033 MD034 -->

| -p<br/> --path | String | Directory containing the files to lint<br/> Example: `./path/to/my/groovy/files` |
| -f<br/> --files | String | Comma-separated list of Ant-style file patterns specifying files that must be included.<br/> Default: `"**/*.groovy,**/Jenkinsfile,**/*.gradle"`<br/>Examples:<br/> - `"**/Jenkinsfile"`<br/> - `"**/*.groovy"`<br/> - `"**/*.gradle"` |
| -f<br/> --files | String | Comma-separated list of Ant-style file patterns specifying files that must be included.<br/> Default: `"**/*.groovy,**/Jenkinsfile,**/*.gradle"`<br/>Examples:<br/> - `"**/Jenkinsfile"`<br/> - `"**/*.groovy"`<br/> - `"**/*.gradle"`<br/> - `"**/mySingleFile.groovy"` |
| -o<br/> --output | String | Output format (txt,json,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.json"`<br/> - `"./logs/myLintResults.html"`<br/> - `"./logs/myLintResults.xml"` |

@@ -61,3 +61,3 @@ | -l<br/> --loglevel | String | Log level (error,warning or info)<br/>Default: info |

| -s<br/> --source | String | If path and files are not set, you can directly send the source code string to analyze |
| -v<br/> --verbose | Boolean | More outputs in console, including performed fixes |
| --verbose | Boolean | More outputs in console, including performed fixes |
| -i<br/> --ignorepattern | String | Comma-separated list of Ant-style file patterns specifying files that must be ignored<br/> Default: none<br/> Example: `"**/test/*""` |

@@ -71,2 +71,3 @@ | --noserver | Boolean | npm-groovy-lint launches a microservice to avoid performance issues caused by loading java/groovy each time,that auto kills itself after 1h idle. Use this argument if you do not want to use this feature |

| -h<br/> --help | Boolean | Show help (npm-groovy-lint -h OPTIONNAME to see option detail with examples) |
| -v<br/> --version | Boolean | Show npm-groovy-lint version (with CodeNarc version) |

@@ -307,3 +308,4 @@ ## Installation

Latest npm-groovy-lint version is natively integrated in [**Mega-Linter**](https://nvuillam.github.io/mega-linter/), that you can use as GitHub action or in other CI tools
Latest npm-groovy-lint version is **natively integrated** in [**Mega-Linter**](https://nvuillam.github.io/mega-linter/), that you can use as GitHub action or in other CI tools
This tool can also **automatically apply fixes** on Pull Request branches

@@ -411,79 +413,2 @@ ### CircleCI

## [8.0.0] 2020-11-15
- Upgrade to CodeNarc 2.0.0
- Upgrade jars
- Adapt Indentation rule to new behaviour
- Use codenarc --ruleset argument instead of temp ruleset file
- Replace super-linter by [Mega-Linter](https://nvuillam.github.io/mega-linter/)
- Fixes
- [(#127)](https://github.com/nvuillam/npm-groovy-lint/issues/127) Formatting breaks code, converting `else if` into `elseif` in some cases
- Apply formatting rules also for --fix mode
- Fix Markdown dead links
- CI
- Migrate from CircleCI to GitHub Actions: now tests are on Linux, Windows & MacOs
- Activate spelling linter of Mega-Linter (+ `.cspell.json` file)
- Add test cases for format and fix using CLI
### [7.6.2] 2020-09-09
- Disable TrailingComma rule by default until crash is solved by CodeNarc ([#75@vscode-groovy-lint](https://github.com/nvuillam/vscode-groovy-lint/issues/75))
### [7.6.0] 2020-09-08
- Add GitHub Action [GitHub Super-Linter](https://github.com/marketplace/actions/super-linter) to the repository
- Update Dockerfile to pass Docker lint rules
### [7.5.5] 2020-09-05
- Upgrade [java-caller](https://github.com/nvuillam/node-java-caller) to v2.2.3
- Fix Java 8 detection ([#101](https://github.com/nvuillam/npm-groovy-lint/issues/101))
### [7.5.4] 2020-09-04
- Update frameworks detection
### [7.5.1] 2020-09-02
- Fix [(#96)](https://github.com/nvuillam/npm-groovy-lint/issues/96) --fix adds redundant space into `${VARIABLE}` (SpaceBeforeOpeningBrace fix rule error)
- Fix grails framework detection
- Fix Groovy parsing parsing when multiple files
- Add `.gvy` and `.nf` in default browsed files extensions
### [7.4.3] 2020-08-29
- Upgrade [java-caller](https://github.com/nvuillam/node-java-caller) to v2.2.0
- Fix CLASSPATH on windows in case there are spaces in paths
### [7.4.2] 2020-08-26
- Fix [(#90)](https://github.com/nvuillam/npm-groovy-lint/issues/90) When log level is specified number of linted files appear to be off
### [7.4.1] 2020-08-23
- [(88)](https://github.com/nvuillam/npm-groovy-lint/pull/88) Fix Docker image to allow to use extra parameters (by [Howard Lo](https://github.com/warhod))
### [7.4.0] 2020-08-17
- [(#87)](https://github.com/nvuillam/npm-groovy-lint/pull/87) Update to openjdk 11 in [official Docker image](https://hub.docker.com/r/nvuillam/npm-groovy-lint) (by [Pawel Kopka](https://github.com/pawelkopka))
### [7.3.0] 2020-08-15
- Allow to link to [CodeNarc RuleSet files](https://codenarc.github.io/CodeNarc/codenarc-creating-ruleset.html) from `.groovylintrc.json`, using property `"codeNarcRulesets"`. Warning: doing so means that all other properties of config file will be ignored.
### [7.1.1] 2020-08-11
- Upgrade [java-caller](https://www.npmjs.com/package/java-caller) to v2.0.0
### [7.1.0] 2020-08-10
- Externalize JavaCaller class into a separate package [java-caller](https://www.npmjs.com/package/java-caller) and use it
### [7.0.0] 2020-08-07
- New default recommended rules (activate/deactivate/change severity)
- Allow to call `--config recommended-jenkinsfile` to use delivered .groovylintrc-recommended-jenkinsfile.json
### PREVIOUS VERSIONS
See complete [CHANGELOG](https://github.com/nvuillam/npm-groovy-lint/blob/master/CHANGELOG.md)
See complete [CHANGELOG](CHANGELOG.md)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc