-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mega-linter.yml
56 lines (43 loc) · 1.63 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
---
# don't test the reports Mega-Linter created, docs, or test files
ADDITIONAL_EXCLUDED_DIRECTORIES:
[report, megalinter-reports, docs, test, tests, venv]
# 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
# don't attempt to apply fixes at this time
APPLY_FIXES: "false"
# Disable devskim as it's reporting an error with no log message
DISABLE_LINTERS:
[
REPOSITORY_DEVSKIM,
SPELL_MISSPELL,
SPELL_CSPELL,
SPELL_PROSELINT,
COPYPASTE_JSCPD,
BASH_EXEC,
]
# only scan new / updated files, not everything
VALIDATE_ALL_CODEBASE: true
# don't print the alpaca -- it's cute, but we don't need it in the logs
PRINT_ALPACA: false
# 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
# only run CSS linting on CSS files (SCSS has it's own linter)
CSS_STYLELINT_FILE_EXTENSIONS: [".css"]
# 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
# skip the libraries, tests, and example files
BASH_EXEC_FILTER_REGEX_EXCLUDE: (libs|\.(test|sample|example)\.)