Turning on suggestions as warnings in file code analysis? Resharper vs TeamCity Inspections
Is it possible to turn on all suggestions/warnings in the status bar indicator? Right now it seems like the only way to show these is by upgrading all suggestions to warnings.
More background:
We are currently using Resharper and Inspections within TeamCity, both with out of the box settings for C#. I have also setup TC to fail on any increase to inspections. In my past JAVA work using IntelliJ/TC I can't recall ever having them out of sync and so following a rule of dont check in if the file is not green pretty much worked..
However, in C#, it is a pain as TC seems stricter out of the box than resharper. It fails on suggestions which are less obvious than in VS2013. So following the rule of don't check in when the file is red or yellow doesn't work.
In fact, I found one case where suggestions are occluding warning:
string x_y = "avalue";
TC correctly highlights x_y as inconsistent naming (a warning level inspection). It does not show in VS - the file is green - I first have to fix the suggestion level check that I should use var instead of string, and then I have to fix the convert it to a const value suggestion before it finally shows the inconsistent variable name warning and turns the status yellow.
As I said, it would be a lot easier if I could make the status bar non-green on any indicator short of upgrading all suggestions to warnings.
Thanks,
Please sign in to leave a comment.