Zero config
Install it and run locguard. A config file exists only when a repository actually needs custom policy.
Source file size guard
locguard is a fast physical-line limit for codebases. It works without setup, respects Git and generated-code conventions, and gives coding agents the same simple invariant in every repository.
Simple invariant
Comments and blank lines count because locguard is not measuring semantic complexity. It is keeping source files modular, reducing shared edit hotspots, and limiting the amount of context a human or coding agent must load to work safely.
Install it and run locguard. A config file exists only when a repository actually needs custom policy.
Bare checks ask Git for current changes so large repositories do not repeatedly rescan unchanged source files.
Once a file is proven to exceed its limit, locguard stops reading it unless exact counts were requested.
Generated/vendor code is quiet by default and exact legacy exemptions can stay invisible to everyday agents.