Skip to content

Commit eb8fb0d

Browse files
committed
Enable prefast and warning checkers
1 parent 76eb09c commit eb8fb0d

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

.pipelines/OneBranch.Official.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ extends:
4040
compiled:
4141
enabled: true
4242
tsaEnabled: true
43+
isNativeCode:
44+
enabled: true
45+
prefast:
46+
enabled: true
4347

4448
stages:
4549
- stage: build

.pipelines/OneBranch.PullRequest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ extends:
3636
enabled: false
3737
sbom:
3838
enabled: true
39+
isNativeCode:
40+
enabled: true
41+
prefast:
42+
enabled: true
3943

4044
stages:
4145
- stage: build

.pipelines/jobs/OneBranchBuild.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
${{ if eq(parameters.OfficialBuild, 'false') }}:
3232
ob_sdl_codeSignValidation_excludes: '-|**\*.exe;-|**\*.dll'
3333

34+
ob_sdl_prefast_enabled: true
35+
ob_sdl_prefast_runDuring: 'Build'
36+
ob_sdl_checkCompliantCompilerWarnings: true
37+
3438
ob_symbolsPublishing_enabled: ${{ parameters.OfficialBuild }}
3539
ob_symbolsPublishing_symbolsFolder: '$(ob_outputDirectory)'
3640
ob_symbolsPublishing_searchPattern: '**\*.pdb'

.pipelines/jobs/OneBranchNuGet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
ob_outputDirectory: '$(Build.SourcesDirectory)\out'
1818
PackageVersion: ${{ parameters.BuildVersion }}
1919

20+
ob_sdl_prefast_enabled: true
21+
ob_sdl_prefast_runDuring: 'Build'
22+
ob_sdl_checkCompliantCompilerWarnings: true
23+
2024
steps:
2125
- task: UseDotNet@2
2226
continueOnError: true

.pipelines/jobs/OneBranchTest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ jobs:
5151
ob_artifactSuffix: $(TestExe).$(BuildPlatform)
5252
ob_sdl_codeSignValidation_excludes: '-|**\*.exe;-|**\*.dll'
5353

54+
ob_sdl_prefast_enabled: true
55+
ob_sdl_prefast_runDuring: 'Build'
56+
ob_sdl_checkCompliantCompilerWarnings: true
57+
5458
BuildPath: '$(Build.SourcesDirectory)/_build/$(BuildPlatform)/${{ parameters.BuildConfiguration }}'
5559

5660
steps:

.pipelines/jobs/OneBranchVsix.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
ob_symbolsPublishing_symbolsFolder: '$(ob_outputDirectory)'
3737
ob_symbolsPublishing_searchPattern: '**\*.pdb'
3838
ob_symbolsPublishing_indexSources: true
39+
40+
ob_sdl_prefast_enabled: true
41+
ob_sdl_prefast_runDuring: 'Build'
42+
ob_sdl_checkCompliantCompilerWarnings: true
3943

4044
steps:
4145
- task: UseDotNet@2

0 commit comments

Comments
 (0)