|
| 1 | +# Copyright The Linux Foundation and each contributor to LFX. |
| 2 | +# SPDX-License-Identifier: MIT |
| 3 | +--- |
| 4 | +GITHUB_COMMENT_REPORTER: false |
| 5 | +DISABLE_LINTERS: |
| 6 | + # We are setting KUBERNETES_DIRECTORY to the helm chart so the |
| 7 | + # KUBERNETES_HELM linter can find the chart, but then this linter expects to |
| 8 | + # find raw Kubernetes manifests in this directory, which isn't the case. |
| 9 | + # If we added a PRE_ command with a `helm template` step, and further |
| 10 | + # restricted the included files for this linter, it *might* work. |
| 11 | + - KUBERNETES_KUBECONFORM |
| 12 | + # TBD how to use this from Megalinter with our setup. |
| 13 | + - KUBERNETES_KUBESCAPE |
| 14 | + # Repository-wide link checking returns mostly false positives (like internal |
| 15 | + # service URLs in templates). |
| 16 | + - SPELL_LYCHEE |
| 17 | + - SPELL_CSPELL |
| 18 | + # yamllint is sufficient for us. |
| 19 | + - YAML_PRETTIER |
| 20 | +DISABLE_ERRORS_LINTERS: |
| 21 | + # Include grammar checks only as warnings. |
| 22 | + - SPELL_PROSELINT |
| 23 | + - SPELL_VALE |
| 24 | + # This may be informative but doesn't need to break the build. |
| 25 | + - COPYPASTE_JSCPD |
| 26 | + # TBD! Need to work through these. |
| 27 | + - REPOSITORY_TRIVY |
| 28 | + - REPOSITORY_CHECKOV |
| 29 | + - REPOSITORY_DEVSKIM |
| 30 | +REPOSITORY_KICS_ARGUMENTS: >- |
| 31 | + scan --no-progress --exclude-severities "medium,low,info,trace" |
| 32 | +SPELL_CSPELL_ANALYZE_FILE_NAMES: false |
| 33 | +# Make sure Vale is setup to run with the styles it needs. |
| 34 | +SPELL_VALE_PRE_COMMANDS: |
| 35 | + - command: mkdir -p styles |
| 36 | + cwd: "workspace" |
| 37 | + - command: vale sync |
| 38 | + cwd: "workspace" |
| 39 | + |
| 40 | +# Ignore YAML files with templating macros; these typically fail linting and/or |
| 41 | +# schema checking. |
| 42 | +FILTER_REGEX_EXCLUDE: '(templates/.*\.yml|templates/.*\.yaml)' |
| 43 | +KUBERNETES_DIRECTORY: charts/lfx-v2-project-service |
| 44 | +KUBERNETES_HELM_ARGUMENTS: charts/lfx-v2-project-service |
0 commit comments