Skip to content

Commit 160efa5

Browse files
authored
Attempt to fix code-ql issues (#1708)
1 parent 6cd9c48 commit 160efa5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- cron: '0 8 * * MON'
1010
workflow_dispatch:
1111

12+
env:
13+
SKIP_POLLY_ANALYZERS: true
14+
1215
permissions:
1316
actions: read
1417
contents: read

eng/Analyzers.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
2-
<ItemGroup Label="Analyzers">
2+
<ItemGroup Label="Analyzers" Condition=" '$(SKIP_POLLY_ANALYZERS)' == '' ">
33
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" PrivateAssets="All" />
44
<PackageReference Include="SonarAnalyzer.CSharp" PrivateAssets="All" />
55
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
@@ -9,7 +9,7 @@
99
<EditorConfigFiles Include="$(MsBuildThisFileDirectory)analyzers\$(ProjectType).globalconfig" />
1010
</ItemGroup>
1111

12-
<PropertyGroup>
12+
<PropertyGroup Condition=" '$(SKIP_POLLY_ANALYZERS)' == '' ">
1313
<RunAnalyzers>true</RunAnalyzers>
1414
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
1515
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>

0 commit comments

Comments
 (0)