For every .env.example / .env.sample / .env.template / .env.dist, every KEY= line must have a # … comment either inline or on the line above. A list of bare keys with no context is a broken contract for new contributors.
Applies to .env.example, .env.sample, .env.template and .env.dist. Every KEY= line must carry a # … comment either inline or on the line directly above.
This gate ships one of the eight deterministic remediation recipes — lgit fix will tell you exactly which line to annotate.
Uncommented .env.example key
A list of bare
KEY=lines tells a new contributor nothing about what to put in them.env_example_uncommentedgit ls-files)What it checks
For every .env.example / .env.sample / .env.template / .env.dist, every KEY= line must have a
# …comment either inline or on the line above. A list of bare keys with no context is a broken contract for new contributors.Applies to
.env.example,.env.sample,.env.templateand.env.dist. EveryKEY=line must carry a# …comment either inline or on the line directly above.This gate ships one of the eight deterministic remediation recipes —
lgit fixwill tell you exactly which line to annotate.What a finding says
Turning it off
Silence the gate for the whole project in
.l0git.json:Or keep it running at a lower severity:
See also