-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codeNarcRulesets not detected when used within .groovylintrc.json #156
Comments
What if you run npm-groovy-lint at the root of your repository ? |
When I run npm-groovy-lint on the JenkinsFile I want to analyze (without the presence of the .groovylintrc.json file) no errors are detected. There are 36 problems detected by the vscode extension though. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
I am using the extension with vscode and I have updated the contents of .groovylintrc.json with the examples rule sets provided.
{
"codenarcRulesets": "RuleSet-1.groovy,RuleSet-2.groovy"
}
No problems are detected within the Jenkins file when I analyze the code following the modification of the config file.
Ideally I would like to implement only those rules in "rulesets/formatting.xml".
$ groovy --version
Groovy Version: 4.0.2 JVM: 18.0.1.1 Vendor: Oracle Corporation OS: Windows 10
$ java -version
java version "18.0.1.1" 2022-04-22
Java(TM) SE Runtime Environment (build 18.0.1.1+2-6)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)
The text was updated successfully, but these errors were encountered: