Disallow end-of-line whitespace.
a { color: pink; }···
/** ↑
* This whitespace */
The --fix
option on the command line can automatically fix most of the problems reported by this rule.
The following patterns are considered violations:
a { color: pink; }·
a { color: pink; }····
Comment strings are also checked -- so the following is a violation:
/* something····
* something else */
The following patterns are not considered violations:
a { color: pink; }
/* something
* something else */
Allow end-of-line whitespace for lines that are only whitespace, "empty" lines.
The following patterns are not considered violations:
a {
color: pink;
··
background: orange;
}
····
a { color: pink; }
····