structure/long-files
Checks the code line count of each file against the limit for its language.
Part of the structure configuration, at the all level. It runs at the commit stage, once per scope. gspot runs this check itself.
A long file hides independent responsibilities from the reader.
What to do
Section titled “What to do”Split the file by responsibility, or raise limits.<language>.file_lines with a reason.
Example
Section titled “Example”A Python file over its line limit reports the count. Split it by responsibility.
Turn it off
Section titled “Turn it off”Turn it off for some files, with a reason:
gspot ignore structure/long-files --paths "<glob>" --reason "<why>"