-
Notifications
You must be signed in to change notification settings - Fork 4
/
.mega-linter.yml
69 lines (52 loc) · 1.9 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
---
# don't test the reports Mega-Linter created, docs, or test files
ADDITIONAL_EXCLUDED_DIRECTORIES:
[report, megalinter-reports, docs, node_modules, _site]
# don't lint test files or documentation
FILTER_REGEX_EXCLUDE: (.venv/|/test/|\.test\.|_test\.|/docs/|/index.html|.github/.*\.html)
# don't scan files listed in .gitignore (e.g., node_modules)
IGNORE_GITIGNORED_FILES: true
# Disable devskim as it's reporting an error with no log message
DISABLE_LINTERS:
[
REPOSITORY_DEVSKIM,
SPELL_MISSPELL,
SPELL_PROSELINT,
SPELL_LYCHEE,
COPYPASTE_JSCPD,
BASH_EXEC,
]
# only scan new / updated files, not everything
VALIDATE_ALL_CODEBASE: false
# don't print the alpaca -- it's cute, but we don't need it in the logs
PRINT_ALPACA: false
# write a SARIF file
SARIF_REPORTER: true
# don't fail on finding (yet)
DISABLE_ERRORS: true
# use prettier for JavaScript code formatting
JAVASCRIPT_DEFAULT_STYLE: prettier
# only scan the files in This commit, not the entire history of the repo
REPOSITORY_GITLEAKS_ARGUMENTS: --no-git
# don't lint the generated code in the docs/ directory
REPOSITORY_DEVSKIM_ARGUMENTS: "--skip-git-ignored-files"
# shfmt will..
# - use multiples of 2 spaces for indenting
# - alllow binary operations to start new lines
# - indent switch case statements
# - place spaces around redirections
# - keep column alignment padding
BASH_SHFMT_ARGUMENTS: -i 2 -bn -ci -sr -kp
REPOSITORY_TRUFFLEHOG_ARGUMENTS: "--exclude-paths=.trufflehogignore"
# Don't let stylelint at the SCSS files -- it breaks 'em
CSS_STYLELINT_FILE_EXTENSIONS:
- ".css"
# There aren't any validators for this custom schema
YAML_V8R_FILTER_REGEX_EXCLUDE: ".*_data.*"
# Please don't spell check the filenames
SPELL_CSPELL_ANALYZE_FILE_NAMES: false
# Only spell check the content, not the data
SPELL_CSPELL_FILE_EXTENSIONS:
- ".md"
# So SARIF files for resolved issues aren't re-sent
CLEAR_REPORT_FOLDER: true