Skip to content

Commit

Permalink
feat: Add MegaLinter config
Browse files Browse the repository at this point in the history
Enable linters for:
- Dockerfiles
- Editorconfig checker
- Groovy
- Markdown
- Python
- Shell scripts
- Yaml files

Resolves #17
  • Loading branch information
turboBasic committed Dec 29, 2023
1 parent bd1a1a5 commit 159d76d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .mega-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
ENABLE_LINTERS:
- BASH_SHELLCHECK
- DOCKERFILE_HADOLINT
- EDITORCONFIG_EDITORCONFIG_CHECKER
- GROOVY_NPM_GROOVY_LINT
- MARKDOWN_MARKDOWNLINT
- PYTHON_BLACK
- YAML_YAMLLINT

# npm-groovy-lint configuration
GROOVY_NPM_GROOVY_LINT_FILE_EXTENSIONS:
- .dsl
- .gradle
- .groovy
- .Jenkinsfile
GROOVY_NPM_GROOVY_LINT_FILE_NAMES_REGEX:
- Jenkinsfile$
GROOVY_NPM_GROOVY_LINT_ARGUMENTS: --failon error

# editorconfig checker configuration
EDITORCONFIG_EDITORCONFIG_CHECKER_FILTER_REGEX_EXCLUDE: >
(?x) ^gradlew | ^\.idea/.* | ^test/resources/callStacks/.*
# general options
CLEAR_REPORT_FOLDER: true
PRINT_ALL_FILES: true
PRINT_ALPACA: false
SHOW_ELAPSED_TIME: true

# reporter options
CONFIG_REPORTER: false
UPDATED_SOURCES_REPORTER: false

0 comments on commit 159d76d

Please sign in to comment.