I'm trying to improve code quality on a program using Visual Studio Enterprise 2015. The Error List is empty, but if I open specific files, then it shows warnings. The only active filter I have is the "Current Project", so I don't understand why is it not showing those warnings by default, but only when I open the files themselves. How can I make VS show all the warnings even for closed files?
Another question, I did "Run Code Analysis and suppress active issues" and I've lost the ones from the previous run. How can I revert this suppressor?
EDIT: One of the warnings I see when opening the file says the following:
RECS0065: Expression is always false
And refers to this section of the code:
if (sourceProject.uid == null
&& row[fieldConfig.ImportFieldName].GetType() == typeof(Guid)
&& (fieldConfig.ODataFieldName == "ProjectId"))
The expression will always be evaluated to false because the sourceProject.uid is always null at this stage.
Now, back to the main question what happens is that if I close the file, then the warning disappears from the Error List. I want to see these warnings even if the files are not opened in the Editor.
This is the kind of warnings that I'm trying to clean, basically just bad coding. My question is not asking how to solve the errors, but how to always visualise them.