npm-groovy-lint
npm-groovy-lint copied to clipboard
Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files using command line
A lot of the bugs that we end up with in our groovy scripts (Jenkins pipelines) are embedded shell scripts that should be caught by a shell linter. Is there...
So [Jenkinsfile recommends importing multiple shared libraries](https://www.jenkins.io/doc/book/pipeline/shared-libraries/#loading-libraries-dynamically) like so ```groovy /* Accessing multiple libraries with one statement */ @Library(['my-shared-library', 'otherlib@abc1234']) _ ``` npm-groovy-lint is by default failing for the `_`...
There are already many CodeNarc rules covered by npm-groovy-lint But there are much more to cover ! The full list is available here -> https://codenarc.org/codenarc-rule-index.html You can see the existing...
Since 10.0.0, `npm-groovy-lint --ignorepattern '**/node_modules/**/*'...` no longer ignores the given pattern. This seems to be caused by revno b73117a, " Refactor input args + New rules + fixes (#224)", which...
As a outcome from linter job I'd like to have two formats of the report available. One is a default one which I leave as it is on console. Second...
Hello. I'm seeing some weird updates to the code after running the following command: `npm-groovy-lint src/** vars/** test/** --rulesets "config/codenarc/codenarc.xml" --fix` I'm using [email protected] with [email protected] I added some attachments...
Node: v21.6.2 Ubuntu: 22.04.1 Always get error: ``` GroovyLint: Started CodeNarc Server CodeNarcServer unexpected error: { "message": "Request failed with status code 500", "name": "Error", "stack": "Error: Request failed with...
What do we think about improving the CI so we have to do less work, a few things come to mind: 1. Adopt [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) 2. Fully automate the release...
Hello, I tried using your linter to format groovy files, specifically Jenkinsfile groovy, but I can't seem to get the indentation formatting to be correct. Is this a known issue...
In case of grouped imports linter returns error NglParseError: unable to find class 'TestGroup.CAN'
I notice that when i have more than 5 imports of the same package that are being grouped to one import like: import com.test.annotations.* linter throws a error : NglParseError...