max_lines_for_function
| Severity | Quick Fix | Options |
|---|---|---|
| Info | ❌ | ✅ |
Usage
To enable the max_lines_for_function rule, add max_lines_for_function under plugins > pyramid_lint > diagnostics in your analysis_options.yaml file:
plugins:
pyramid_lint: <version>
diagnostics:
max_lines_for_function: true
Options
| Option | Type | Description | Default Value |
|---|---|---|---|
max_lines | int | The maximum number of lines. | 100 |
To configure the maximum number of lines, add the max_lines under plugins > pyramid_lint > options:
plugins:
pyramid_lint: <version>
diagnostics:
max_lines_for_function: true
options:
max_lines_for_function:
max_lines: 200
