npm-groovy-lint
Advanced tools
Comparing version 1.0.3 to 1.1.0
{ | ||
"name": "npm-groovy-lint", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "NPM CodeNarc wrapper to easily lint Groovy files", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"prepare-package": "jdeploy install && node patch-jdeploy.js", | ||
"test": "npm run prepare-package && npm-groovy-lint -basedir=\"dist/test\" -rulesetfiles=\"file:dist/test/RuleSet-all.txt\" -title=\"TestTitle\" -maxPriority1Violations=0 -report=\"html:dist/test/ReportTest.html\"", | ||
"test": "npm run prepare-package && npm-groovy-lint -basedir=\"dist/test\" -rulesetfiles=\"file:dist/test/RuleSet-All.groovy\" -title=\"TestTitle\" -maxPriority1Violations=0 -report=\"html:dist/test/ReportTest.html\"", | ||
"publish-to-npm": "npm run prepare-package && npm publish" | ||
@@ -11,0 +11,0 @@ }, |
@@ -25,4 +25,7 @@ # NPM GROOVY LINT | ||
You can use [this one](https://github.com/nvuillam/npm-groovy-lint/blob/master/src/dist/test/RuleSet-All.txt) as a starter | ||
You can use as starters : | ||
- [All rules](https://github.com/nvuillam/npm-groovy-lint/blob/master/dist/test/RuleSet-All.groovy) | ||
- [Base rules](https://github.com/nvuillam/npm-groovy-lint/blob/master/dist/test/RuleSet-Base.groovy) | ||
# USAGE | ||
@@ -40,5 +43,5 @@ | ||
$ npm-groovy-lint -includes=**/Jenkinsfile -rulesetfiles="file:config/codenarc/RuleSet-all.txt" -title="MyJenkinsfileLinterReport" -maxPriority1Violations=0 -report="html:MyJenkinsfileLinterReport.html" | ||
$ npm-groovy-lint -includes=**/Jenkinsfile -rulesetfiles="file:config/codenarc/RuleSet-All.groovy" -title="MyJenkinsfileLinterReport" -maxPriority1Violations=0 -report="html:MyJenkinsfileLinterReport.html" | ||
$ npm-groovy-lint -basedir="src" -rulesetfiles="file:config/codenarc/RuleSet-all.txt" -title="MyGroovyLinterReport" -maxPriority1Violations=0 -report="html:MyGroovyLinterReport.html" | ||
$ npm-groovy-lint -basedir="src" -rulesetfiles="file:config/codenarc/RuleSet-Base.groovy" -title="MyGroovyLinterReport" -maxPriority1Violations=0 -report="html:MyGroovyLinterReport.html" | ||
``` | ||
@@ -45,0 +48,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16880590
31
66