forked from secureCodeBox/secureCodeBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mega-linter.yml
42 lines (36 loc) · 1.84 KB
/
.mega-linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Configuration file for MegaLinter
# See all available variables at https://megalinter.github.io/configuration/ and in linters documentation
APPLY_FIXES: none # all, none, or list of linter keys
# ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
# ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default
ENABLE_LINTERS: # Most linters are chosen for how popular (i.e stars on Github) they are, or how fast they are, unless stated otherwise
# Languages
- BASH_SHFMT # Using shfmt instead of shellcheck because it has auto-fixes.
- GO_GOLANGCI_LINT
- DOCKERFILE_HADOLINT
- GO_GOLANGCI_LINT
- GROOVY_NPM_GROOVY_LINT
- JAVA_CHECKSTYLE
- JAVASCRIPT_ES # linter used in Project already.
- TYPESCRIPT_ES # linter used in Project already.
- PHP_PHPSTAN
- PYTHON_BLACK
# Formats
- JSON_ESLINT_PLUGIN_JSONC # Only supported linter that has auto-fixes.
- YAML_PRETTIER # Only supported linter that has auto-fixes.
# Tooling formats
- ACTION_ACTIONLINT
# Other
- SPELL_MISSPELL # SPELL_CSPELL has a lot of false positives and does not have auto-fixes
DISABLE:
- COPYPASTE # Comment to enable checks of excessive copy-pastes
- MARKDOWN # Disable markdown as the readmes are generated automatically
- CREDENTIALS # Disable checks for credentials, as there are some false positives in the repo for documentation purposes (e.g demo-targets)
SHOW_ELAPSED_TIME: true
DISABLE_ERRORS: true # Uncomment if you want MegaLinter to detect errors but not block CI to pass
# ignore files generated by controller-gen
FILTER_REGEX_EXCLUDE: (.*rbac/role\.yaml|.*bases/.*\.yaml|.*/templates/.*\.yaml)
VALIDATE_ALL_CODEBASE: false
IGNORE_GENERATED_FILES: true
# disable useless alpaca ascii art that gets printed at the start of the linting
PRINT_ALPACA: false