-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mega-linter.yml
104 lines (104 loc) · 4.56 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# ==================================================================
# .mega-linter.yml
# ==================================================================
# MegaLinter Config File
# See all available variables at https://megalinter.io/configuration/ and in linters documentation
# ==================================================================
# COMMON CONFIGURATION VARIABLES
# ==================================================================
APPLY_FIXES: all
CLEAR_REPORT_FOLDER: true
# Uncomment the line below if you are running the linter locally
# DEFAULT_WORKSPACE: /tmp/lint
# Uncomment below to flag to have the linter complete with exit code 0 even if errors were detected
# DISABLE_ERRORS: true
LINTER_RULES_PATH: .github/linters
MARKDOWN_DEFAULT_STYLE: markdownlint
PARALLEL: true
VALIDATE_ALL_CODEBASE: true
# ==================================================================
# ACTIVE LINTER CONFIGURATION
# ==================================================================
ENABLE_LINTERS:
# LANGUAGES
- BASH_EXEC
- BASH_SHELLCHECK
# FORMATS
- JSON_JSONLINT
- JSON_V8R
- MARKDOWN_MARKDOWNLINT
- MARKDOWN_MARKDOWN_LINK_CHECK
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
- YAML_PRETTIER
- YAML_YAMLLINT
# TOOLING FORMATS
- ACTION_ACTIONLINT
- DOCKERFILE_HADOLINT
# OTHER
- REPOSITORY_CHECKOV
- REPOSITORY_GIT_DIFF
- REPOSITORY_GITLEAKS
- REPOSITORY_SECRETLINT
- REPOSITORY_SEMGREP
- REPOSITORY_TRIVY
- SPELL_CSPELL
- SPELL_VALE
# ==================================================================
# INCLUSIONS / EXCLUSIONS
# ==================================================================
# FILTER_REGEX_EXCLUDE: '(\.github/bots)'
# ==================================================================
# MISCELLANEOUS OPTIONS
# ==================================================================
SHOW_ELAPSED_TIME: true
FLAVOR_SUGGESTIONS: true
# ==================================================================
# REPORTING CONFIGURATION
# ==================================================================
EMAIL_REPORTER: false
FILEIO_REPORTER: true
GITHUB_STATUS_REPORTER: true
JSON_REPORTER: true
TEXT_REPORTER: true
TEXT_REPORTER_SUB_FOLDER: logs
# ==================================================================
# OPTIONAL - RECOMMENDED PLUGINS
# ==================================================================
# 1. LinkCheck - Markdown link verifier
# 2. MegaLinter Salt Plugin - checks Salt State Files (SLS) for best practices
# ==================================================================
# PLUGINS:
# - https://raw.githubusercontent.com/shiranr/linkcheck/main/mega-linter-plugin-linkcheck/linkcheck.megalinter-descriptor.yml
# - https://raw.githubusercontent.com/ssc-services/mega-linter-plugin-salt/main/mega-linter-plugin-salt/salt.megalinter-descriptor.yml
# ==================================================================
# OPTIONAL - PRE & POST COMMANDS
# ==================================================================
# Examples of the required syntax for PRE & POST COMMANDS
# ==================================================================
# PRE_COMMANDS:
# - command: echo "This is MegaLinter PRE_COMMAND on your own MegaLinter ! :)"
# cwd: "root"
# POST_COMMANDS:
# - command: echo "This is MegaLinter POST_COMMAND on your own MegaLinter ! :)"
# cwd: "workspace"
# ==================================================================
# OPTIONAL - INLINE LINTER CONFIGURATION
# ==================================================================
# The alternative to configuring linters inline are the linter
# configuration files located in .github/linters/**
# However, these are not available for every linter, and so we use
# inline configuration in these instances
# ==================================================================
# BASH_EXEC
# ==================================================================
# MegaLinter BASH_EXEC page: https://megalinter.io/latest/descriptors/bash_bash_exec/
# ==================================================================
BASH_EXEC_FILE_EXTENSIONS: [".sh",".bash"]
BASH_EXEC_FILE_NAMES_REGEX: ["Dockerfile(-.+)?"]
BASH_EXEC_DISABLE_ERRORS_IF_LESS_THAN: 3
# ==================================================================
# BASH_SHELLCHECK
# ==================================================================
# How to ignore errors: https://www.shellcheck.net/wiki/Ignore
# Enumerated ShellCheck Codes: https://gist.github.com/nicerobot/53cee11ee0abbdc997661e65b348f375
# ==================================================================