Run static code analyzer on most of our code (#2817)

This commit is contained in:
Changming Sun 2020-01-10 22:17:17 -08:00 committed by GitHub
parent e37cdbed74
commit c4e4abce73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -11,6 +11,15 @@ steps:
arguments: 'analyze $(Build.BinariesDirectory)\RelWithDebInfo\*.dll --recurse --verbose'
continueOnError: true
- task: DeleteFiles@1
displayName: 'Delete files from $(Build.BinariesDirectory)\RelWithDebInfo'
inputs:
SourceFolder: '$(Build.BinariesDirectory)\RelWithDebInfo'
Contents: |
**/*.obj
**/*.pdb
**/*.dll
- task: securedevelopmentteam.vss-secure-development-tools.build-task-prefast.SDLNativeRules@2
displayName: 'Run the PREfast SDL Native Rules for MSBuild'
continueOnError: true

View file

@ -84,7 +84,6 @@ jobs:
logProjectEvents: true
workingFolder: '$(Build.BinariesDirectory)\RelWithDebInfo'
createLogFile: true
clean: true
# Build RelWithDebInfo -- this variable required to build C#
- script: |