1

I'm using WebStorm for Ember development. Specifically, I'm our Front-End guy, doing HTML/Handlebars and CSS functionality. I'm tired of WebStorm throwing CSS validation errors on stuff I don't care about, like IE compatibility problems. Further, I'd like to 'enable' some advanced inspections, like don't tell me var declarations are invalid (since we're using valid css var declarations).

It also doesn't recognize certain css rules, e.g. -webkit-margin-before. I don't want it to tell me those are errors, I know they aren't.

I am losing signal for all the noise, and I'm hoping to reduce or eliminate the noise. But I cannot figure out how to enhance/edit the inspections, since it's just a 'high level' checklist of stuff it should check for.

I'm assuming there's an XML file somewhere I can edit, or something similar?

CalvT
  • 3,123
  • 6
  • 37
  • 54
Mike Earley
  • 1,223
  • 4
  • 20
  • 47

1 Answers1

3

All these errors can be easily suppressed from UI: hit Alt+Enter on the statement that is causing the warning, then hit right arrow and choose one of the suggested options:

  • 'Disable inspection' disables this inspection for all files

  • 'Suppress for statement' (available for some inspections) disables rhis inspection for current statement only

  • 'Suppress all inspections for ruleset' disables ALL inspections, but for the current ruleset only

Note also that you can disable all inspections for the certain file using the Hector icon in the lower right corner: open your *.css in editor, click the Hector icon and then move the slider to change the Highlighting level to 'Syntax' (the position in the middle) See http://www.jetbrains.com/webstorm/webhelp/changing-highlighting-level-for-the-current-file.html

lena
  • 90,154
  • 11
  • 145
  • 150
  • So, interestingly, this worked for some errors but not others. For example, it worked on IE compatibility but not on 'no generic default'. For that, it only offers to add the default sans-serif. Also, side note, on the Mac app you can't do Opt-Enter, you have to hover, wait for the light-bulb to showup, and click that to get to this function. – Mike Earley May 13 '14 at 19:32
  • It works for me on 'no generic default' - the drop-down with 7 suggestions is displayed on hitting right arrow; it includes 'Suppress for statement', 'Suppress for ruleset' , 'Suppress all inspections for ruleset' and 'Disable inspection'; also, Alt(Opt) + Enter does work for me on MacOSX – lena May 14 '14 at 12:44