Severity: Warning | Category: Linting
Detects keys that have no assigned value (key ends with = with nothing after it).
API_KEY=
DEBUG_MODE=
# Provide a default value
API_KEY=development-key
# Or use empty quotes to be explicit
API_KEY=""
# Or comment if not needed
# API_KEY= # TODO: Set in production
Empty values may be intentional:
$ envcheck lint .env
.env:12: W001: Empty value: API_KEY
The fix command does not auto-fix empty values (requires intent decision).
# .envcheckrc.yaml
rules:
W001:
severity: warning # Can set to info or ignore
allow_for:
- FEATURE_FLAG_* # Allow empty for certain patterns
# Ignore for all feature flags
envcheck lint .env --ignore=W001
# Or use config to allow specific patterns