-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.mega-linter.yml
More file actions
42 lines (42 loc) · 1.72 KB
/
.mega-linter.yml
File metadata and controls
42 lines (42 loc) · 1.72 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
# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT
---
GITHUB_COMMENT_REPORTER: false
DISABLE_LINTERS:
# We are setting KUBERNETES_DIRECTORY to the helm chart so the
# KUBERNETES_HELM linter can find the chart, but then this linter expects to
# find raw Kubernetes manifests in this directory, which isn't the case.
# If we added a PRE_ command with a `helm template` step, and further
# restricted the included files for this linter, it *might* work.
- KUBERNETES_KUBECONFORM
# TBD how to use this from Megalinter with our setup.
- KUBERNETES_KUBESCAPE
# Repository-wide link checking returns mostly false positives (like internal
# service URLs in templates).
- SPELL_LYCHEE
- SPELL_CSPELL
# yamllint is sufficient for us.
- YAML_PRETTIER
DISABLE_ERRORS_LINTERS:
# This may be informative but doesn't need to break the build.
- COPYPASTE_JSCPD
# TBD! Need to work through these.
- REPOSITORY_TRIVY
- REPOSITORY_CHECKOV
- REPOSITORY_DEVSKIM
YAML_YAMLLINT_CONFIG_FILE: .yamllint
# yamllint disable-line rule:line-length
REPOSITORY_KICS_ARGUMENTS: scan --no-progress --exclude-severities="medium,low,info,trace" --exclude-paths="gen/*"
SPELL_CSPELL_ANALYZE_FILE_NAMES: false
# Make sure Vale is setup to run with the styles it needs.
SPELL_VALE_PRE_COMMANDS:
- command: mkdir -p styles
cwd: "workspace"
- command: vale sync
cwd: "workspace"
API_SPECTRAL_FILTER_REGEX_EXCLUDE: "gen"
# Ignore YAML files with templating macros; these typically fail linting and/or
# schema checking.
FILTER_REGEX_EXCLUDE: '(templates/.*\.yml|templates/.*\.yaml|gen/.*)'
KUBERNETES_DIRECTORY: charts/lfx-v2-auth-service/templates
KUBERNETES_HELM_ARGUMENTS: charts/lfx-v2-auth-service