secureCodeBox/secureCodeBox

View on GitHub
.mega-linter.yml

Summary

Maintainability
Test Coverage
# SPDX-FileCopyrightText: the secureCodeBox authors
#
# SPDX-License-Identifier: Apache-2.0

# Configuration file for MegaLinter
# See all available variables at https://megalinter.github.io/configuration/ and in linters documentation

APPLY_FIXES: none # all, none, or list of linter keys
# ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
# ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default

ENABLE_LINTERS: # Most linters are chosen for how popular (i.e stars on Github) they are, or how fast they are, unless stated otherwise
  # Languages
  - BASH_SHFMT # Using shfmt instead of shellcheck because it has auto-fixes.
  - GO_GOLANGCI_LINT
  - DOCKERFILE_HADOLINT
  - GO_GOLANGCI_LINT
  - GROOVY_NPM_GROOVY_LINT
  - JAVA_CHECKSTYLE
  - JAVASCRIPT_ES # linter used in Project already.
  - TYPESCRIPT_ES # linter used in Project already.
  - PHP_PHPSTAN
  - PYTHON_BLACK
  # Formats
  - JSON_ESLINT_PLUGIN_JSONC # Only supported linter that has auto-fixes.
  - YAML_PRETTIER # Only supported linter that has auto-fixes.
  # Tooling formats
  - ACTION_ACTIONLINT
  # Other
  - SPELL_MISSPELL # SPELL_CSPELL has a lot of false positives and does not have auto-fixes

DISABLE:
  - COPYPASTE # Comment to enable checks of excessive copy-pastes
  - MARKDOWN # Disable markdown as the readmes are generated automatically
  - CREDENTIALS # Disable checks for credentials, as there are some false positives in the repo for documentation purposes (e.g demo-targets)

SHOW_ELAPSED_TIME: true
DISABLE_ERRORS: true # Uncomment if you want MegaLinter to detect errors but not block CI to pass

# ignore files generated by controller-gen
FILTER_REGEX_EXCLUDE: (.*rbac/role\.yaml|.*bases/.*\.yaml|.*/templates/.*\.yaml)
VALIDATE_ALL_CODEBASE: false
IGNORE_GENERATED_FILES: true

# disable useless alpaca ascii art that gets printed at the start of the linting
PRINT_ALPACA: false