Skip to content

GROOVY

Linters

Linter Additional
npm-groovy-lint
GROOVY_NPM_GROOVY_LINT
GitHub stars autofix sarif

Linted files

  • File extensions:
    • .groovy
    • .gvy
    • .gradle
    • .nf
  • File names:
    • Jenkinsfile

Configuration in MegaLinter

Variable Description Default value
GROOVY_PRE_COMMANDS List of bash commands to run before the linters None
GROOVY_POST_COMMANDS List of bash commands to run after the linters None
GROOVY_FILTER_REGEX_INCLUDE Custom regex including filter
GROOVY_FILTER_REGEX_EXCLUDE Custom regex excluding filter