# MegaLinter configuration — rust flavour
# https://megalinter.io/latest/configuration/

FLAVOR: rust

ENABLE_LINTERS:
  - YAML_PRETTIER
  - YAML_YAMLLINT
  - MARKDOWN_MARKDOWNLINT
  - REPOSITORY_SECRETLINT
  - REPOSITORY_TRIVY

# RUST_CLIPPY: runs in a musl container without system OpenSSL — fails to
#   compile the crate. Clippy is already enforced in the Test Suite job.
# RUST_RUSTFMT: already enforced in the Test Suite job.
DISABLE_LINTERS:
  - RUST_CLIPPY
  - RUST_RUSTFMT

# Trivy and prettier are informational only (prettier flags style, not correctness)
DISABLE_ERRORS_LINTERS:
  - REPOSITORY_TRIVY
  - YAML_PRETTIER

FILTER_REGEX_EXCLUDE: "(target/|Cargo\\.lock|examples/)"

# Use our custom yamllint config tuned for GitHub Actions line lengths
YAML_YAMLLINT_CONFIG_FILE: .yamllint.yml

PRINT_ALL_FILES: false
SHOW_ELAPSED_TIME: true

GITHUB_STATUS_REPORTER: true
GITHUB_COMMENT_REPORTER: false
