You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
If you're using an IDE you should be able to see all the warnings displayed in it. You can also build with -p:RunAnalyzersDuringBuild=true from command line to see all warnings.
The reason will be displayed to describe this comment to others. Learn more.
It does report everything at once; the IDE0005 "unused import" directive in particular just happens to only be raised once per file for a contiguous block of import statements.
656618f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're using an IDE you should be able to see all the warnings displayed in it. You can also build with
-p:RunAnalyzersDuringBuild=true
from command line to see all warnings.656618f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it a CI job then?
656618f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because clearly that doesn't prevent non-conforming code to be pushed.
656618f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be configured to report everything at once?
656618f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. We could potentially not use
warnaserror
and collect the existence of warning messages some other way (if that's even possible).I think in general if you're trying to fix reported code style violations it's best to run the command locally to see if you caught everything.
656618f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does report everything at once; the IDE0005 "unused import" directive in particular just happens to only be raised
once per filefor a contiguous block of import statements.