MDS022: max-file-length
File must not exceed maximum number of lines.
# Settings
| Setting | Type | Default | Description |
|---|---|---|---|
max | int | 300 | Maximum lines allowed |
# Config
rules:
max-file-length:
max: 500Disable:
rules:
max-file-length: false# Examples
# Good
# Title
Short file within the limit.
One more line.# Bad
# Title
Short text.
Extra line.# Meta-Information
- ID: MDS022
- Name:
max-file-length - Status: ready
- Default: enabled, max: 300
- Fixable: no
- Implementation: source
- Category: structural