Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper: Suspicious type conversion or check

So while using ReSharper, I was trying to configure my Code Inspection settings and I ran into an issue with one particular case.

When trying to change the 'Suspicious type conversion or check' severity level from Warning to Error, I noticed the Error dropdown didn't exist for this case. After doing some looking around the internet I was unable to find any information as to why the 'Error' Severity would be missing from this case.

'Suspicious type conversion or check' is located under the 'Potential Code Quality Issues':

options page

like image 967
user3924048 Avatar asked Aug 08 '14 23:08

user3924048


1 Answers

Some inspections, like the one you mentioned, require R#'s "solution-wide analysis". See Solution-Wide Code Inspections.

In the current version 8.2.1 these inspections cannot be configured to the "error" severity level (even if the "solution-wide analysis" is turned on).

like image 123
ulrichb Avatar answered Oct 16 '22 00:10

ulrichb