15
6
A function should not exceed a certain number of lines.
To enable the max_lines_for_function rule, add max_lines_for_function under custom_lint > rules in your analysis_options.yaml file:
max_lines_for_function
analysis_options.yaml
custom_lint: rules: - max_lines_for_function
max_lines
int
100
To configure the maximum number of lines, add an int to the max_lines option:
custom_lint: rules: - max_lines_for_function: max_lines: 200