Ignore "unknown css class" for specified classes

Is there any way to have the code analysis ignore certain css class names?  It would be great if it could handle those like it does abbreviations... right-click -> Add to ignore list.

We have some class names that are only used at run-time and since I strive for 0 warnings/errors, I'd like to not have those warnings without having to set the entire inspection option to suggestion/hint/do not show because I would still like warnings if a typo in a class name was made, or if the css rule for a non-ignored class wasn't found.

2 comments
Comment actions Permalink

Hello Shawn
     There's no such functionality at the moment. You're welcome to put a feature request through http://youtrack.jetbrains.net/issues/RSRP. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

I created an empty declaration (in my case for slide in bootstrap carousel) and then disabled the DeclarationIsEmpty warning for that class, like so:

    /* ReSharper disable once DeclarationIsEmpty */
    .slide {}

0

Please sign in to leave a comment.