Lint Rules Reference

Complete documentation of all envcheck lint rules.

Rule Severity

SeverityDescriptionExit Code
ErrorMust be fixed before deployment1
WarningShould be reviewed2
InfoInformational only0

Rule Summary

IDRuleSeverityCategory
E001Duplicate KeyErrorLinting
E002Invalid SyntaxErrorLinting
W001Empty ValueWarningLinting
W002Trailing WhitespaceWarningLinting
W003Unsorted KeysInfoLinting
W004Missing KeyWarningComparison
W005K8s Missing EnvWarningKubernetes
W006Unused EnvInfoKubernetes
W007Terraform VariableWarningTerraform (Phase 2)
W008TF_VAR MissingWarningTerraform (Phase 2)
W009Ansible LookupWarningAnsible (Phase 2)
W010ArgoCD Plugin EnvWarningArgoCD (Planned)
W011Helm ConventionInfoHelm (Planned)
W012GitHub Actions EnvWarningGitHub Actions (Planned)

Ignoring Rules

Command line

envcheck lint .env --ignore=W001,W002

Config file

# .envcheckrc.yaml
rules:
  ignore:
    - W001  # Allow empty values
    - W003  # Don't care about sorting

Inline comments (planned)

# envcheck:ignore=W001
API_KEY=