CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.77k stars 483 forks source link

No warning on unclosed comment #438

Open llbeee opened 10 years ago

llbeee commented 10 years ago

If one lints this: /* foo

.. there are no warning. It could seem like a trivial issue, however that could disable a lot of code (and unless it's a major part of your code, one might not notice it).

stubbornella commented 10 years ago

I've added the "rule" label. Sounds like a good potential rule... I had this exact problem last week at the end of a file, when the files were concatenated, all the subsequent rules were disabled.

llbeee commented 10 years ago

Nice!

This case is also important:

/* foo

[code]

/* bar */

This requires to check for /* within comments, so it's not considered to be written as one comment; /* foo .. bar */.