Expand description
long-function native rule — flags functions exceeding a line count threshold.
Uses tree-sitter tags queries to identify function boundaries and measures line span (end_line - start_line + 1).
§Configuration
The threshold is configurable via .normalize/config.toml:
[rules.rule."long-function"]
threshold = 50 # default: 100Structs§
- Long
Function Finding - Serializable per-file finding for the long-function rule.
- Long
Function Rule - Rule that flags functions exceeding a line count threshold.
Functions§
- build_
long_ function_ report - Build a
DiagnosticsReportfor thelong-functionrule.