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
Steps to Reproduce:
With the goal of bringing Roslyn Analyzers as a build-breaking code hygiene tool to your large, many-sln codebase....
Wire up Roslyn to run a default set of analyzers as part of every project. This will likely require .targets changes and build.props edits.
Run a build. As expected, the build is broken in potentially thousands of places.
Grandfather in all existing debt.
Expected Behavior:
Feature exists to baseline the entire repo.
Actual Behavior:
No such feature exists.
Since the feature does not yet exist, we built a custom ScopeIdentifier analyzer which generates all of the missing information needed to be able to crunch a Roslyn SARIF file into a LocalSuppressions.cs. We include this scopeidentifier like a normal analyzer <Analyzer Include="…ScopeIdentifier.dll" /> and drop an <errorlog>foo.Sarif</errorlog> during a build. From there we have a Roslyn suppressor tool combine these two files into LocalSuppressions.cs.
The text was updated successfully, but these errors were encountered:
Output the missing scope and target information into the SARIF file.
Build a feature by which Roslyn will generate the suppressions file and update the csproj to include this file. The functionality already exists in VS to do essentially this (via right click -> suppress all in suppressions file). We need this functionality to be available natively in msbuild.
Version Used:
2.9
Steps to Reproduce:
With the goal of bringing Roslyn Analyzers as a build-breaking code hygiene tool to your large, many-sln codebase....
Expected Behavior:
Feature exists to baseline the entire repo.
Actual Behavior:
No such feature exists.
Since the feature does not yet exist, we built a custom ScopeIdentifier analyzer which generates all of the missing information needed to be able to crunch a Roslyn SARIF file into a LocalSuppressions.cs. We include this scopeidentifier like a normal analyzer
<Analyzer Include="…ScopeIdentifier.dll" />
and drop an<errorlog>foo.Sarif</errorlog>
during a build. From there we have a Roslyn suppressor tool combine these two files into LocalSuppressions.cs.The text was updated successfully, but these errors were encountered: