15
6
DO limit the number of lines in a file.
To enable the max_lines_for_file rule, add max_lines_for_file under custom_lint > rules in your analysis_options.yaml file:
max_lines_for_file
analysis_options.yaml
custom_lint: rules: - max_lines_for_file
max_lines
int
200
To configure the maximum number of lines, add an int to the max_lines option:
custom_lint: rules: - max_lines_for_file: max_lines: 500