-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add audit mode to ci
- Loading branch information
Showing
16 changed files
with
92 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
x64/ | ||
x86/ | ||
ARM64/ | ||
build/ | ||
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
parameters: | ||
platform: '' | ||
additionalBuildArguments: '' | ||
|
||
jobs: | ||
- job: Build${{ parameters.platform }}AuditMode | ||
displayName: Static Analysis Build ${{ parameters.platform }} | ||
variables: | ||
BuildConfiguration: AuditMode | ||
BuildPlatform: ${{ parameters.platform }} | ||
pool: { vmImage: vs2017-win2016 } | ||
|
||
steps: | ||
- checkout: self | ||
submodules: true | ||
clean: true | ||
|
||
- task: NuGetToolInstaller@0 | ||
displayName: Ensure NuGet 4.8.1 | ||
inputs: | ||
versionSpec: 4.8.1 | ||
|
||
# In the Microsoft Azure DevOps tenant, NuGetCommand is ambiguous. | ||
# This should be `task: NuGetCommand@2` | ||
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2 | ||
displayName: Restore NuGet packages | ||
inputs: | ||
command: restore | ||
feedsToUse: config | ||
configPath: NuGet.config | ||
restoreSolution: OpenConsole.sln | ||
restoreDirectory: '$(Build.SourcesDirectory)\packages' | ||
|
||
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2 | ||
displayName: 'NuGet restore packages for CI' | ||
inputs: | ||
command: restore | ||
restoreSolution: build/.nuget/packages.config | ||
feedsToUse: config | ||
externalFeedCredentials: 'TAEF NuGet Feed' | ||
nugetConfigPath: build/config/NuGet.config | ||
restoreDirectory: '$(Build.SourcesDirectory)/packages' | ||
|
||
- task: VSBuild@1 | ||
displayName: 'Build solution **\OpenConsole.sln' | ||
inputs: | ||
solution: '**\OpenConsole.sln' | ||
vsVersion: 15.0 | ||
platform: '$(BuildPlatform)' | ||
configuration: '$(BuildConfiguration)' | ||
msbuildArgs: ${{ parameters.additionalBuildArguments }} | ||
clean: true | ||
maximumCpuCount: true |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RuleSet Name="Console Rules" Description="These rules enforce static analysis on console code." ToolsVersion="15.0"> | ||
|
||
<Include Path="cppcorecheckrules.ruleset" Action="Default" /> | ||
|
||
<Rules AnalyzerId="Microsoft.Analyzers.NativeCodeAnalysis" RuleNamespace="Microsoft.Rules.Native"> | ||
<Rule Id="C6001" Action="Error" /> | ||
<Rule Id="C6011" Action="Error" /> | ||
</Rules> | ||
|
||
</RuleSet> |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,3 @@ | |
|
||
#include "winrt/Windows.Foundation.h" | ||
#include <Windows.h> | ||
#include <wil/result.h> |
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
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
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
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