# Max comment size Prevent the total size of all comments from exceeding a predefined number of bytes. ```css /* This is a comment */ /* ↑ * the total size of all comments is counted */ ``` This rule counts the **total byte size** of all CSS comments in the stylesheet. ## Options `Number` (non-negative integer) Use `0` to disallow all comments entirely. Given: `10` the following are considered violations: ```css /* This is a long comment */ a { color: red; } ``` The following patterns are _not_ considered problems: ```css a { color: red; } ``` ```css /* short */ a { color: red; } ``` ## Optional secondary options ### `ignoreCopyrightComments: true` Ignores copyright comments from the total byte count. A copyright comment is one that starts with `/*!`. Given: `[10, { ignoreCopyrightComments: true }]` The following patterns is _not_ considered a problem: ```css /*! Copyright 2024 My Company. All rights reserved. */ a { color: red; } ``` ## Prior art - ESLint's [`max-lines`](https://eslint.org/docs/latest/rules/max-lines) rule — same concept applied to JavaScript files