-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mega-linter.yml
138 lines (121 loc) · 3.94 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
##
# Configuration file for MegaLinter.
#
# @link https://megalinter.io/configuration/
#
##
# Linters that support fixing in-place do so within the commit.
#
# When applying basic fixes, this doesn't create another Pull Request or commit - MegaLinter fixes small changes
# in-place during testing. Modify this in the `.github/workflows/.mega-linter.yml` configuration, if needed.
#
APPLY_FIXES: all
##
# Never run these linters, regardless of flavor or configuration.
#
DISABLE_LINTERS:
##
# Per Megalinter staff, DevSkim doesn't provide significant value and can be very problematic.
#
# @see {@link https://github.com/oxsecurity/megalinter/issues/3017}
- REPOSITORY_DEVSKIM
##
# Lychee is _extremely_ slow right now, and Markdown link checking occurs with other linters. Consider the usefulness
# of dead hyper link checking in code comments before re-enabling.
#
- SPELL_LYCHEE
##
# Don't create public reports on file.io.
#
FILEIO_REPORTER: false
##
# Recommend flavors to the developer to help reduce container layer size.
#
# Mature projects may want to turn this off to reduce linter spam.
#
FLAVOR_SUGGESTIONS: true
##
# Follow the `.gitignore` file for what files to ignore in the linter.
#
IGNORE_GITIGNORED_FILES: true
##
# The project moves linting configurations out of the project root to reduce root file bloat.
#
LINTER_RULES_PATH: .config/linters
##
# Avoid unnecessary text output in logs.
#
PRINT_ALPACA: false
##
# Time elapsed information helps with optimization.
#
SHOW_ELAPSED_TIME: true
##
# Allow developers to review other linters that may help with their project.
#
# Mature projects may want to turn this off to reduce linter spam.
#
SHOW_SKIPPED_LINTERS: true
## ---------------------------------------------------------------------------------------------------------------------
# Linter configurations.
#
##
# TODO Manually include `*.mk` files, as Checkmake doesn't currently support includes.
# @link https://github.com/mrtazz/checkmake/issues/97
#
MAKEFILE_CHECKMAKE_FILE_EXTENSIONS:
- .mk
##
# File ignore patterns for MarkdownLint.
#
# - Vale style guide dependencies
#
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: (\.config\/linters\/vale\/styles\/Google\/.*)
##
# MegaLinter doesn't lint code by default, rather limiting linting to `.md` and `.rst` files. These configurations add
# certain file extensions, some of which are natively supported, and others have their mapping in the `vale.ini` file.
#
# > Note, YAML is explicitly not supported as many project benefit from having in-editor prose linting of content
# > blocks, and this capability would disappear if comments were solely linted. As such, a compromise solution is to not
# > lint YAML during integration, but enable visualization and management of possible errors in the editor.
#
# > Note, JSON is explicitly not supported as there seems to be a problem parsing text in arrays. Since comments aren't
# > supported in JSON, generally, this adds minor risk.
#
# @link https://vale.sh/docs/topics/config/#format-associations
#
# TEMPLATE TODO - Add file extensions and mappings based on what technologies are in the project.
#
SPELL_VALE_FILE_EXTENSIONS:
# - .ecrc
# - .editorconfig
# - .gitattributes
# - .gitignore
# - .ini
# - .mk
- .md
# - .prettierignore
# - .txt
# - Makefile
##
# File ignore patterns for Vale.
#
# - Vale style guide dependencies
# - Vale dictionary rejections
#
SPELL_VALE_FILTER_REGEX_EXCLUDE: (\.config\/linters\/vale\/styles\/(Google\/.+|Vocab\/.+\/reject\.txt))
##
# File ignore patterns for v8r.
#
# - Vale style guide dependencies
#
# TODO Also temporarily ignores GitHub Issue templates due to problem with schema update.
# @link http://tinyurl.com/tplcore44
#
YAML_V8R_FILTER_REGEX_EXCLUDE: (\.config\/linters\/vale\/styles\/Google\/.*|\.github/ISSUE_TEMPLATE/.*\.yml)
##
# File ignore patterns for YAMLLint.
#
# - Vale style guide dependencies
#
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: (\.config\/linters\/vale\/styles\/Google\/.*)