Skip to content

Commit

Permalink
Suppress issues from latest analyzer version
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveTryon committed Nov 26, 2024
1 parent d6465dd commit b8abf32
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CA1014;CS8002;CA1416</NoWarn>
<NoWarn>$(NoWarn);CA1014;CS8002;CA1416;CA1515;CA1872;CA2263</NoWarn>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.Sbom.Api/Microsoft.Sbom.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<ItemGroup>
<!-- Pinned assemblies for transitive dependencies -->
<PackageReference Include="Microsoft.Extensions.Caching.Memory" /> <!-- Used by ComponentDetection -->
<PackageReference Include="System.Net.Http" /> <!-- Used by ComponentDetection -->
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<SbomCLIToolTargetFramework>net8.0</SbomCLIToolTargetFramework>
<SBOMCLIToolProjectDir>$(MSBuildThisFileDirectory)..\..\src\Microsoft.Sbom.Tool\</SBOMCLIToolProjectDir>
<SBOMGenerationTargetsPath>$(MSBuildThisFileDirectory)..\..\src\Microsoft.Sbom.Targets\Microsoft.Sbom.Targets.targets</SBOMGenerationTargetsPath>
<NoWarn>CA1515;NU1701;NU1903</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<NoWarn>CA1515</NoWarn>
</PropertyGroup>

<!--Ignore errors related to selecting a nuget.config and dependency resolution-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<RootNamespace>Microsoft.Sbom.Targets.Tests</RootNamespace>
<SbomCLIToolTargetFramework>net8.0</SbomCLIToolTargetFramework>
<SBOMCLIToolProjectDir>$(MSBuildThisFileDirectory)..\..\src\Microsoft.Sbom.Tool\</SBOMCLIToolProjectDir>
<NoWarn>CA1515;CA1872;NU1701;NU1903</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit b8abf32

Please sign in to comment.