CodingStyle-LinesOfCodeInFile¶
A file should not contain more than N lines of code
Required inputs: IR
Note
Number of lines of code (in a file) is also available as a metric, which can be configured to produce a metric violation when limits are exceeded. This stylecheck rule is available as an alternative to the metric. Further metrics regarding lines of code in routines, etc. are available as metrics as well.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
too_many_lines |
File contains too many lines of code (only {} are allowed). |
None |
False |
too_many_lines_with_value |
File contains too many lines of code (contains {}, only {} are allowed). |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
max_value¶
max_value : int = 800
show_value¶
show_value : bool = False