Marking "Type is never used" as an error or have it stand out
I have a reference.cs file with over 280,000 lines. I am trying to find the types which are not used. The color bar is mostly yellow because of the hundreds (or thousands) of warnings. I have set "type is never used" as a warning but I can't find these warnings because I bet they are burried with all the other warnings. I am not inclined to change all the other inspection severity properties to "do no show" just to get this one type of warning showing up. I don't see a reset option and I don't see an import/export option for the settings so that I can revert teh settings. I don't want to spend a ton of time changing these settings manually.
What are my options to get Resharper to display for me the types and methods which are not used? I can't and I don't know why I can't change the "type is not used" to an error type. This could have enabled me to quickly locate these unused types.
Please sign in to leave a comment.
Hello abdu,
The most convenient way to view all types and members that are not used is
to turn on solution-wide analysis, run Find Code Issues for the reference.cs
file (or for the whole project/solution) and then filter the list of encountered
issues by 'Type is never used' and 'Type member is never used' inspections.
You can also configure the severity of these inspections under ReSharper
| Options | Code Inspection | Inspection Severity. Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"