build(directory): 🔨 globally suppress CA1812

This commit is contained in:
Collin M. Barrett 2020-08-23 20:10:13 -05:00
parent f195c7d3b5
commit 6f9cd5d6e3
5 changed files with 8 additions and 10 deletions

View file

@ -20,11 +20,11 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;CA2007</NoWarn>
<NoWarn>1701;1702;CA2007;CA1812</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>CA2007</NoWarn>
<NoWarn>CA2007;CA1812</NoWarn>
</PropertyGroup>
<ItemGroup>

View file

@ -7,9 +7,7 @@
namespace FilterLists.Directory.Api
{
#pragma warning disable CA1812
internal class Startup
#pragma warning restore CA1812
{
public Startup(IConfiguration configuration)
{

View file

@ -17,11 +17,11 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;CA2007;CA1034</NoWarn>
<NoWarn>1701;1702;CA2007;CA1034;CA1812</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>CA2007;CA1034</NoWarn>
<NoWarn>CA2007;CA1034;CA1812</NoWarn>
</PropertyGroup>
<ItemGroup>

View file

@ -17,11 +17,11 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;CA2007</NoWarn>
<NoWarn>1701;1702;CA2007;CA1812</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>CA2007</NoWarn>
<NoWarn>CA2007;CA1812</NoWarn>
</PropertyGroup>
<ItemGroup>

View file

@ -17,11 +17,11 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;CA2007</NoWarn>
<NoWarn>1701;1702;CA2007;CA1812</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>CA2007</NoWarn>
<NoWarn>CA2007;CA1812</NoWarn>
</PropertyGroup>
<ItemGroup>