Skip to content
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

Disable rule in .groovylintrc.json for specific files #154

Closed
wheelerlaw opened this issue Feb 12, 2021 · 2 comments
Closed

Disable rule in .groovylintrc.json for specific files #154

wheelerlaw opened this issue Feb 12, 2021 · 2 comments

Comments

@wheelerlaw
Copy link

I want to disable the rules for *.gradle files. How do I do this in the .groovylintrc file?

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

@nvuillam
Copy link
Owner

You can't do that in .groovylintrc, but you can do that with arguments :)

Default --files values is "**/*.groovy,**/Jenkinsfile,**/*.gradle"

You can use npm-groovy-lint --files "**/*.groovy,**/Jenkinsfile" to ignore .gradle files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants