-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mega-linter.yml
67 lines (66 loc) · 2.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
# Configuration file for MegaLinter
# See all available variables at
# https://oxsecurity.github.io/megalinter/configuration/ and in linters documentation
APPLY_FIXES: all # 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
DISABLE:
# - CLOUDFORMATION
# - COPYPASTE # Uncomment to disable checks of excessive copy-pastes
# - CSS
- EDITORCONFIG
# - SPELL # Uncomment to disable checks of spelling mistakes
# - JAVASCRIPT
# - TEKTON
DISABLE_LINTERS:
# - CLOUDFORMATION
# - COPYPASTE # Uncomment to disable checks of excessive copy-pastes
# - CSS
# - JSON_PRETTIER
# - REPOSITORY_GITLEAKS
# - SPELL_PROSELINT
- C_CPPLINT
- CPP_CPPLINT
#DISABLE_ERRORS_LINTERS:
# - PYTHON_BANDIT
# - PYTHON_PYRIGHT
# - REPOSITORY_DEVSKIM
# - REPOSITORY_SEMGREP
PRINT_ALL_FILES: false
FILTER_REGEX_EXCLUDE: '(\.automation/test|\.automation/generated|\.github/workflows|docs/javascripts|docs/overrides|docs/json-schemas|flavors|clj-kondo|TEMPLATES)'
JSON_JSONLINT_FILTER_REGEX_EXCLUDE: '(\.vscode/)'
# YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml)'
# YAML_PRETTIER_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml|mkdocs\.yml)'
YAML_V8R_FILTER_REGEX_EXCLUDE: '(\.codecov\.yml|\.vscode/\.json|\.devcontainer/\.json|pages/tsconfig.json|/.gitlab-ci.yml)'
#YAML_V8R_FILTER_REGEX_EXCLUDE: '(.gitlab-ci.yml)'
BASH_FILTER_REGEX_EXCLUDE: '(lib)'
MARKDOWN_FILTER_REGEX_EXCLUDE: '(license\.md)'
# MARKDOWN_MARKDOWN_LINK_CHECK_DISABLE_ERRORS: true
SPELL_CSPELL_CONFIG_FILE: cspell.json
SPELL_MISSPELL_FILTER_REGEX_EXCLUDE: '(\.automation/generated|docs/descriptors)'
# COPYPASTE_FILTER_REGEX_EXCLUDE: '(LICENSES/CC0-1.0\.txt|CHANGELOG\.md)'
# TYPESCRIPT_FILTER_REGEX_EXCLUDE: '(src/apps/translations)'
DOCKERFILE_HADOLINT_ARGUMENTS:
'--ignore DL3003 --ignore DL3007 --ignore DL3013 --ignore DL3016 --ignore DL3018
--ignore DL3028 --ignore DL3059 --ignore DL4001 --ignore DL4006 --ignore SC2015
--ignore SC2016 --ignore SC2039 --ignore SC2086 --ignore SC1091 --ignore SC3046'
REPOSITORY_TRIVY_ARGUMENTS:
- '--skip-dirs'
- '.automation/test'
REPOSITORY_GOODCHECK_FILTER_REGEX_EXCLUDE: '(goodcheck\.yml)'
SHOW_ELAPSED_TIME: true
EMAIL_REPORTER: false
FILEIO_REPORTER: true
JSON_REPORTER: true
GITHUB_STATUS_REPORTER: true
PLUGINS:
- https://raw.githubusercontent.com/oxsecurity/megalinter/main/.automation/test/mega-linter-plugin-test/test.megalinter-descriptor.yml
PRE_COMMANDS:
- command: echo "This is MegaLinter PRE_COMMAND on own MegaLinter ! :)"
cwd: 'root'
POST_COMMANDS:
- command: echo "This is MegaLinter POST_COMMAND on own MegaLinter ! :)"
cwd: 'workspace'