Whenever I open legacy or third party code that does not comply with my stylecop settings I get loads of blue underlines (warnings). This makes it quite hard to read the code as it adds a loads of line noise.
Is there a way of changing this curly underline style for warnings (or disable it) in resharper without having to switch of the whole code analysis?
I'm running resharper 7.1.1
I only have Resharper 5.1 at work, but it should be similar in 7.1.1
Navigate to:
ReSharper->Options...->Code Inspection->Inspection Severity
and change:
StyleCop - Defaults (Requires VS Restart)->Default Violation Severity
to 'Show as hint'
And then restart VS.
Alternatively you can use
CTRL
+SHIFT
+ALT
+8
(default VS keymap) to temporarily turn code analysis off / on.Additionally, you can have individual 'Settings.StyleCop' settings files per project so you could create one for your legacy project to ignore everything.