max_lines_for_file

SeverityQuick FixOptions
Info

Details

DO limit the number of lines in a file.

Usage

To enable the max_lines_for_file rule, add max_lines_for_file under custom_lint > rules in your analysis_options.yaml file:

custom_lint:
  rules:
    - max_lines_for_file

Options

OptionTypeDescriptionDefault Value
max_linesintThe maximum number of lines.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