-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add correctness check that only runs analyzers #62035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
68d1c05
77ac388
52c69bb
eb39b1a
b0dd4fa
9ce3240
5bf9771
8c8ae70
55957ae
b688a61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -268,3 +268,17 @@ jobs: | |
| parameters: | ||
| jobName: Correctness_Rebuild | ||
| configuration: Release | ||
|
|
||
| - job: Correctness_Analyzers | ||
| pool: | ||
| name: NetCore1ESPool-Public | ||
| demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open | ||
| timeoutInMinutes: 30 | ||
| steps: | ||
| - template: eng/pipelines/checkout-task.yml | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Build with analyzers | ||
| inputs: | ||
| filePath: eng/build.ps1 | ||
| arguments: -restore -build -configuration Debug -prepareMachine -ci -binaryLog -runAnalyzers:$true -warnAsError:$true -properties "/p:RoslynEnforceCodeStyle=true" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So getting all analyzer diagnostics in the solution on the command line requires emitting, etc.? is that correct? Just wondered if there was an msbuild target or something equivalent to "run code analysis on solution."
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. someday when we are allowed to used github actions we could use: https://github.com/dotnet/code-analysis but for now I think this is the simplest approach. |
||
Uh oh!
There was an error while loading. Please reload this page.