-
Notifications
You must be signed in to change notification settings - Fork 23
/
.mega-linter.yml
70 lines (66 loc) · 2.49 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
# Configuration file for Mega-Linter
# See all available variables at https://megalinter.github.io/configuration/
APPLY_FIXES: all
DEFAULT_BRANCH: main
FAIL_IF_UPDATED_SOURCES: true
DISABLE_LINTERS:
- REPOSITORY_DEVSKIM
- REPOSITORY_GITLEAKS
- DOCKERFILE_HADOLINT
- REPOSITORY_TRIVY
- REPOSITORY_CHECKOV
- REPOSITORY_SECRETLINT
- REPOSITORY_KICS
- REPOSITORY_GRYPE
- SCALA_SCALAFIX
- SQL_TSQLLINT
- C_CPPLINT # For pollux/lib/anoncreds/src/main/c
- CPP_CPPLINT # For pollux/lib/anoncreds/src/main/c
- JAVA_CHECKSTYLE # For pollux/lib/anoncreds/src/main/java
- GHERKIN_GHERKIN_LINT
- OPENAPI_SPECTRAL
# For python, disable all except PYTHON_BLACK linter
- PYTHON_PYLINT
- PYTHON_FLAKE8
- PYTHON_ISORT
- PYTHON_BANDIT
- PYTHON_MYPY
- PYTHON_PYRIGHT
- PYTHON_RUFF
- TYPESCRIPT_STANDARD
DISABLE_ERRORS_LINTERS:
- KOTLIN_KTLINT
- KOTLIN_DETEKT
- PROTOBUF_PROTOLINT
- MARKDOWN_MARKDOWN_LINK_CHECK
- ACTION_ACTIONLINT
DISABLE: [COPYPASTE, SPELL, CREDENTIALS]
SHOW_ELAPSED_TIME: false
FILEIO_REPORTER: false
FLAVOR_SUGGESTIONS: false
PRINT_ALPACA: false
VALIDATE_ALL_CODEBASE: false
SHOW_SKIPPED_LINTERS: false
LOG_LEVEL: INFO
BASH_SHELLCHECK_DISABLE_ERRORS: true
# This pre-command fixes complex CLRF bug
# when MegaLinter takes changes, it checkouts code twice
# that could lead to new files in workspace created
# with CLRF instead of CL due docker/python/git chain
PRE_COMMANDS:
- command: git config --global core.autocrlf input
cwd: "workspace"
- command: pip install Click==8.1.3
cwd: "workspace"
# Linter customisation
MARKDOWN_MARKDOWN_LINK_CHECK_FILTER_REGEX_EXCLUDE: CHANGELOG\.md|DEPENDENCIES\.md
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: CHANGELOG\.md|DEPENDENCIES\.md
MARKDOWN_MARKDOWN_TABLE_FORMATTER_FILTER_REGEX_EXCLUDE: CHANGELOG\.md|DEPENDENCIES\.md
SQL_SQL_LINT_ARGUMENTS: -d postgres --ignore-errors=postgres-invalid-alter-option,postgres-invalid-create-option,postgres-invalid-drop-option
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: "infrastructure/charts/agent/*|cloud-agent/service/api/http/*|examples/*"
YAML_PRETTIER_FILTER_REGEX_EXCLUDE: "infrastructure/charts/agent/*|cloud-agent/service/api/http/*|examples/*"
YAML_V8R_FILTER_REGEX_EXCLUDE: "infrastructure/charts/agent/*"
JAVASCRIPT_STANDARD_FILTER_REGEX_EXCLUDE:
"tests/performance-tests/agent-performance-tests-k6/src/k6chaijs.js\
|tests/performance-tests/agent-performance-tests-k6/src/common/ProofsService.ts|tests/didcomm-tests/docker/initdb.js"
BASH_SHELLCHECK_FILTER_REGEX_EXCLUDE: "infrastructure/*"