-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.mega-linter.yml
More file actions
68 lines (55 loc) 路 1.91 KB
/
Copy path.mega-linter.yml
File metadata and controls
68 lines (55 loc) 路 1.91 KB
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
# MegaLinter Configuration for ColorScripts-Enhanced
# https://megalinter.io/latest/config-file/
# Apply fixes automatically
APPLY_FIXES: "all"
# Activate/deactivate linters
ENABLE:
- "MARKDOWN"
- "POWERSHELL"
- "YAML"
- "REPOSITORY"
DISABLE_LINTERS:
- "SPELL_CSPELL"
- "SPELL_MISSPELL"
- "COPYPASTE_JSCPD"
# PowerShell specific settings
POWERSHELL_POWERSHELL_CONFIG_FILE: "PSScriptAnalyzerSettings.psd1"
POWERSHELL_POWERSHELL_FILTER_REGEX_EXCLUDE: "(Scripts/.*\\.ps1)"
# Markdown settings
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: ".markdownlint.json"
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: "(CHANGELOG\\.md|node_modules/)"
MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: ".markdown-link-check.json"
MARKDOWN_MARKDOWN_LINK_CHECK_CLI_LINT_MODE: "file"
MARKDOWN_MARKDOWN_TABLE_FORMATTER_FILTER_REGEX_EXCLUDE: "(CHANGELOG\\.md|.*AUDIT.*\\.md|.*SUMMARY.*\\.md)"
# Repository linters
REPOSITORY_CHECKOV_ARGUMENTS: "--framework github_actions --skip-check CKV_GHA_7,CKV2_GHA_1"
REPOSITORY_DEVSKIM_ARGUMENTS: "--ignore-globs **/node_modules/**,**/.git/**"
REPOSITORY_GITLEAKS_CONFIG_FILE: ".gitleaks.toml"
# REPOSITORY_SECRETLINT_ARGUMENTS: "--secretlintrc .secretlintrc.json"
REPOSITORY_TRIVY_ARGUMENTS: "--skip-dirs node_modules"
# YAML settings
YAML_YAMLLINT_CONFIG_FILE: ".yamllint.yml"
# File exclusions
FILTER_REGEX_EXCLUDE: "(node_modules/|\\.git/|\\.vscode/|Scripts/.*\\.ps1|cache/)"
# Reporting
SHOW_ELAPSED_TIME: true
FILEIO_REPORTER: false
GITHUB_COMMENT_REPORTER: true
JSON_REPORTER: true
MARKDOWN_SUMMARY_REPORTER: true
TAP_REPORTER: false
UPDATED_SOURCES_REPORTER: false
# Parallel execution
PARALLEL: true
# Fail settings
DISABLE_ERRORS: false
FAIL_IF_MISSING_LINTER_IN_FLAVOR: false
# Pre/post commands
PRE_COMMANDS:
- command: >-
echo "Starting MegaLinter for ColorScripts-Enhanced"
cwd: "workspace"
POST_COMMANDS:
- command: >-
echo "MegaLinter complete"
cwd: "workspace"