# Max lines of code Prevent a stylesheet from exceeding a predefined number of lines of code. ```css a { color: red; } b { color: blue; } /* ↑ * each line with actual CSS counts towards the total */ ``` This rule counts **source lines of code** (SLOC) — blank lines and comment-only lines are excluded from the count. Read more about [how lines of code are counted](https://www.projectwallace.com/docs/metrics/stylesheets-linesofcode-sourcelinesofcode-total). ## Options `Number` Given: `2` the following are considered violations: ```css a { color: green; } a { color: red; } ``` The following patterns are _not_ considered problems: ```css a {} ``` ```css a { color: red; } ``` ## Prior art - ESLint's [`max-lines`](https://eslint.org/docs/latest/rules/max-lines) rule — same concept applied to JavaScript files