-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.mega-linter.yml
More file actions
121 lines (117 loc) · 4.44 KB
/
Copy path.mega-linter.yml
File metadata and controls
121 lines (117 loc) · 4.44 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
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
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/oxsecurity/megalinter/refs/heads/main/megalinter/descriptors/schemas/megalinter-configuration.jsonschema.json
# Config file references
ACTION_ACTIONLINT_CONFIG_FILE: "config/linting/ActionLintConfig.yaml"
# Fixes
APPLY_FIXES: "all"
BITBUCKET_COMMENT_REPORTER: false
# Reporters configuration
CONFIG_REPORTER: true
CONSOLE_REPORTER: true
CONSOLE_REPORTER_SECTIONS: true
DEFAULT_BRANCH: "main"
DEFAULT_WORKSPACE: "/tmp/lint"
# Core configuration
DISABLE_ERRORS: true
# Disabled linters (use project-specific tools instead)
DISABLE_LINTERS:
- "CSS_STYLELINT" # Using project stylelint config
- "TYPESCRIPT_STANDARD" # Using ESLint + Prettier
- "JAVASCRIPT_PRETTIER"
- "JSON_PRETTIER"
- "YAML_PRETTIER"
- "TYPESCRIPT_ES" # Using ESLint + Prettier
- "JAVASCRIPT_ES" # Using ESLint + Prettier
- "JSX_ESLINT" # Using ESLint + Prettier
- "CREDENTIALS_SECRETLINT" # Using secretlint
- "REPOSITORY_SECRETLINT" # Using secretlint
- "TSX_ESLINT" # Using ESLint + Prettier
- "TYPESCRIPT_PRETTIER"
- "JSON_PRETTIER"
- "JSON_JSONLINT"
- "JSON_ESLINT_PLUGIN_JSONC"
EMAIL_REPORTER: false
ERROR_ON_MISSING_EXEC_BIT: false
# Excluded directories
EXCLUDED_DIRECTORIES:
- "node_modules"
- "dist"
- "coverage"
- "docs"
- "icons"
- "assets"
- "screenshots"
- "libs"
- "tests"
- ".git"
- ".vscode"
- ".idea"
FAIL_IF_MISSING_LINTER_IN_FLAVOR: true
FAIL_IF_UPDATED_SOURCES: false
FILEIO_REPORTER: false
FLAVOR_SUGGESTIONS: true
FORMATTERS_DISABLE_ERRORS: true
GITHUB_COMMENT_REPORTER: true
GITHUB_STATUS_REPORTER: true
GITHUB_WORKSPACE: "/tmp/lint"
GITLAB_COMMENT_REPORTER: false
IGNORE_GENERATED_FILES: true
IGNORE_GITIGNORED_FILES: true
# Linters configuration
JAVASCRIPT_DEFAULT_STYLE: "prettier"
JAVASCRIPT_PRETTIER_CONFIG_FILE: ".prettierrc"
JSON_PRETTIER_CONFIG_FILE: ".prettierrc"
# Error handling for specific linters
JSON_PRETTIER_DISABLE_ERRORS: true
JSON_REPORTER: true
JSON_REPORTER_OUTPUT_DETAIL: "detailed"
JSON_V8R_DISABLE_ERRORS_IF_LESS_THAN: 2
# LLM Advisor configuration
LLM_ADVISOR_ENABLED: true
LLM_ADVISOR_LEVEL: "WARNING"
LLM_ADVISOR_POSITION: "after_linter_output"
LLM_MAX_TOKENS: "1048576"
LLM_MODEL_NAME: "gemini-2.5-flash"
LLM_PROVIDER: "google"
LLM_TEMPERATURE: "0.03"
# Logging configuration
LOG_FILE: ".mega-linter.log"
LOG_LEVEL: "WARNING"
# Markdown configuration
MARKDOWN_DEFAULT_STYLE: "markdownlint"
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: "markdownlint.json"
MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: ".markdown-link-check.json"
MARKDOWN_MARKDOWN_TABLE_FORMATTER_FILTER_REGEX_EXCLUDE: "^.*(CHANGELOG|README|SECURITY)\\.md$"
MARKDOWN_SUMMARY_REPORTER: true
OUTPUT_DETAIL: "simple"
# Schema: https://raw.githubusercontent.com/megalinter/megalinter/main/megalinter/descriptors/schemas/megalinter-configuration.jsonschema.json
# Performance optimizations
PARALLEL: true
# Security and analysis plugins
PLUGINS:
- "https://raw.githubusercontent.com/wesley-dean/mega-linter-plugin-repolinter/refs/heads/main/mega-linter-plugin-repolinter/repolinter.megalinter-descriptor.yml"
- "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.35.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml"
- "https://raw.githubusercontent.com/ssc-services/mega-linter-plugin-salt/main/mega-linter-plugin-salt/salt.megalinter-descriptor.yml"
- "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.35.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml"
- "https://raw.githubusercontent.com/hype8912/check-toml-megalinter-plugin/main/mega-linter-plugin-checktoml/checktoml.megalinter-descriptor.yml"
- "https://raw.githubusercontent.com/wesley-dean/mega-linter-plugin-fmlint/refs/heads/main/mega-linter-plugin-fmlint/fmlint.megalinter-descriptor.yml"
PRINT_ALL_FILES: false
PRINT_ALPACA: true
REPOSITORY_CHECKOV_CONFIG_FILE: ".checkov.yml"
REPOSITORY_DEVSKIM_CONFIG_FILE: ".devskim.json"
REPOSITORY_DEVSKIM_DISABLE_ERRORS: true
REPOSITORY_GRYPE_CONFIG_FILE: ".grype.yaml"
REPOSITORY_KICS_CONFIG_FILE: "kics.yaml"
REPOSITORY_SECRETLINT_CONFIG_FILE: ".secretlintrc.json"
SARIF_REPORTER: true
SHOW_ELAPSED_TIME: true
SHOW_SKIPPED_LINTERS: true
SPELL_CSPELL_CONFIG_FILE: ".cspell.json"
SPELL_LYCHEE_CONFIG_FILE: "lychee.toml"
TAP_REPORTER: true
TEXT_REPORTER: true
TYPESCRIPT_DEFAULT_STYLE: "prettier"
TYPESCRIPT_STANDARD_DISABLE_ERRORS: true
UPDATED_SOURCES_REPORTER: true
VALIDATE_ALL_CODEBASE: true
YAML_YAMLLINT_CONFIG_FILE: ".yamllint"