Skip to content

Commit

Permalink
CA2007 to editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jinek committed Nov 29, 2024
1 parent 088be14 commit a113d81
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dotnet_diagnostic.ca1043.severity = none # todo: why not to use indexer rather t
dotnet_diagnostic.ca1814.severity = none # sometimes we need rectangle array
dotnet_diagnostic.ca1058.severity = none # check why new documentation warns not to derive from ApplicationException. The purpose of last is to distinguish system exceptions like OOM, AssemblyLoadException etc from application logic
dotnet_diagnostic.ca2000.severity = none # exceptions which are listed in the rule can be applied to any type
dotnet_diagnostic.CA2007.severity = none # we are assuming task continuation thread is fine by default
dotnet_diagnostic.ca2213.severity = none # keeping field does not mean necessarity to dispose - it can be dispose somwhere else
dotnet_diagnostic.ca2248.severity = none # https://github.com/dotnet/roslyn-analyzers/issues/4432
dotnet_diagnostic.ca1062.severity = none # we are fine with NRE - no need for additional checks
Expand Down
5 changes: 1 addition & 4 deletions src/Consolonia.Core/Consolonia.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Core.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<NoWarn>CA2007;</NoWarn>
</PropertyGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Core.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<ItemGroup>
<AvaloniaXaml Remove="Controls\FileOpen\**" />
<Compile Remove="Controls\FileOpen\**" />
Expand Down
1 change: 0 additions & 1 deletion src/Consolonia.GuiCS/Consolonia.GuiCS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
<WarningsAsErrors>false</WarningsAsErrors>
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>false</EnableNETAnalyzers>
<NoWarn>CA2007;</NoWarn>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion src/Consolonia.NUnit/Consolonia.NUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

<PropertyGroup>
<IsPackable>true</IsPackable>
<NoWarn>CA2007;</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Core.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<NoWarn>CA2007;</NoWarn>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Consolonia.Core\Consolonia.Core.csproj" />
<ProjectReference Include="..\Consolonia.GuiCS\Consolonia.GuiCS.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Core.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<NoWarn>CA2007;</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

<PropertyGroup>
<IsPackable>false</IsPackable>
<NoWarn>CA2007;</NoWarn>
</PropertyGroup>


Expand Down
1 change: 0 additions & 1 deletion src/Tests/Consolonia.Core.Tests/StorageTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma warning disable CA2007 // Consider calling ConfigureAwait on the awaited task
// ReSharper disable PossibleNullReferenceException
// ReSharper disable ConstantConditionalAccessQualifier
using System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<IsPackable>false</IsPackable>
<NoWarn>CA2007;</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit a113d81

Please sign in to comment.