Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I prevent Resharper's error in solution window from showing CSS/javascript errors?

I love Resharper's solution analysis tool. It has served me very well in a lot of desktop and server applications. Now I need to do some web development. I want to use Resharper for the C# code, but Javascript/Html/Css errors appear in the list as well. ALT-SHIFT-PageDown sends me to these errors all the time.

In our team, someone else is in charge of the front-end. I don't even have the skill to judge of the quality of their code. All I want is to exclude all errors that are not C# so I can concentrate on my back-end code. Is this or some other workaround possible?

like image 639
Kevin Coulombe Avatar asked Feb 29 '12 18:02

Kevin Coulombe


1 Answers

You can try adding a file mask in your ignored list.

Resharper -> Options -> Code Inspection Settings -> Edit Items To Skip

Add .css and .js. This won't help with inline CSS/JS, but it will exclude the external files.

Or go to Inspection Severity and set "Do Not Show" under all options in the JS/CSS/HTML tabs.

like image 171
Brandon Avatar answered Sep 28 '22 00:09

Brandon