Skip to main content

Module long_file

Module long_file 

Source
Expand description

long-file native rule — flags source files exceeding a line count threshold.

Excludes well-known lock files and paths matching the allow list configured under [rules.rule."long-file"] allow = [...] in .normalize/config.toml.

§Configuration

[rules.rule."long-file"]
threshold = 300         # default: 500
allow = ["grammars/**"] # paths to skip (glob patterns)

Structs§

LongFileFinding
Serializable per-file finding for the long-file rule.
LongFileRule
Rule that flags source files exceeding a line count threshold.

Functions§

build_long_file_report
Build a DiagnosticsReport for the long-file rule.