Skip to content

Commit 9ffc836

Browse files
Dennis Doomendennisdoomen
authored andcommitted
SAVEPOINT
1 parent b464027 commit 9ffc836

28 files changed

+62
-85
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
root = true
1+
root = true
22
# EditorConfig is awesome: http://EditorConfig.org
33

44
# top-most EditorConfig file
@@ -172,7 +172,7 @@ dotnet_diagnostic.RS0030.severity = error
172172
dotnet_diagnostic.IDE0004.severity = error
173173

174174
# IDE0005: Remove unnecessary usings/imports
175-
dotnet_diagnostic.IDE0005.severity = suggestion
175+
dotnet_diagnostic.IDE0005.severity = error
176176

177177
# IDE0051: Remove unused private members (no reads or writes)
178178
dotnet_diagnostic.IDE0051.severity = error

Build/_build.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<PackageDownload Include="xunit.runner.console" Version="[2.5.0]" />
2424
<PackageDownload Include="Node.js.redist" Version="[16.20.0]" />
2525
<PackageReference Include="LibGit2Sharp" Version="0.27.2" />
26-
<PackageReference Include="Nuke.Common" Version="7.0.4" />
27-
<PackageReference Include="Nuke.Components" Version="7.0.4" />
26+
<PackageReference Include="Nuke.Common" Version="7.0.6" />
27+
<PackageReference Include="Nuke.Components" Version="7.0.6" />
2828
<PackageDownload Include="Yarn.MSBuild" Version="[1.22.19]" />
2929
</ItemGroup>
3030
</Project>

Directory.Build.props

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project>
1+
a<Project>
22
<PropertyGroup>
33
<LangVersion>11.0</LangVersion>
44
<CheckEolTargetFramework>false</CheckEolTargetFramework>
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
1515
<EnableNETAnalyzers>true</EnableNETAnalyzers>
16-
<AnalysisLevel>latest</AnalysisLevel>
16+
<AnalysisLevel>7.0</AnalysisLevel>
1717
<AnalysisMode>All</AnalysisMode>
1818
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
1919
</PropertyGroup>
@@ -26,15 +26,15 @@
2626
<PrivateAssets>all</PrivateAssets>
2727
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2828
</PackageReference>
29-
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.8.3">
29+
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.8.4">
3030
<PrivateAssets>all</PrivateAssets>
3131
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3232
</PackageReference>
33-
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0">
33+
<PackageReference Include="Roslynator.Analyzers" Version="4.6.1">
3434
<PrivateAssets>all</PrivateAssets>
3535
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3636
</PackageReference>
37-
<PackageReference Include="Meziantou.Analyzer" Version="2.0.70">
37+
<PackageReference Include="Meziantou.Analyzer" Version="2.0.103">
3838
<PrivateAssets>all</PrivateAssets>
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4040
</PackageReference>

Src/FluentAssertions.DataSets/Common/ReadOnlyNonGenericCollectionWrapper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Collections.Generic;
44
using System.Data;
55
using System.Linq;
6-
using FluentAssertions.Common;
76

87
namespace FluentAssertions.DataSets.Common;
98

Src/FluentAssertions.DataSets/DataColumnCollectionAssertionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Data;
33
using System.Linq;
44
using FluentAssertions.Collections;
5-
using FluentAssertions.Common;
65
using FluentAssertions.DataSets.Common;
76
using FluentAssertions.Execution;
87

Src/FluentAssertions.DataSets/DataEquivalencyAssertionOptions.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Data;
44
using System.Linq.Expressions;
55
using System.Reflection;
6-
using FluentAssertions.DataSets.Equivalency;
76
using FluentAssertions.Equivalency;
87

98
namespace FluentAssertions.DataSets;
@@ -127,8 +126,7 @@ private void ExcludeMemberOfSubtypeOfRelatedTypeByGeneratedPredicate<TDeclaringT
127126

128127
private static MemberInfo GetMemberAccessTargetMember(Expression expression)
129128
{
130-
if (expression is UnaryExpression unaryExpression
131-
&& unaryExpression.NodeType == ExpressionType.Convert)
129+
if (expression is UnaryExpression { NodeType: ExpressionType.Convert } unaryExpression)
132130
{
133131
// If the expression is a value type, then accessing it will involve an
134132
// implicit boxing conversion to type object that we need to ignore.
@@ -257,12 +255,7 @@ public bool ShouldExcludeColumn(DataColumn column)
257255
return true;
258256
}
259257

260-
if (excludeColumnNamesByTableName.TryGetValue(column.Table.TableName, out HashSet<string> excludeColumnsForTable)
261-
&& excludeColumnsForTable.Contains(column.ColumnName))
262-
{
263-
return true;
264-
}
265-
266-
return false;
258+
return excludeColumnNamesByTableName.TryGetValue(column.Table.TableName, out HashSet<string> excludeColumnsForTable)
259+
&& excludeColumnsForTable.Contains(column.ColumnName);
267260
}
268261
}

Src/FluentAssertions.DataSets/DataRowAssertionExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using FluentAssertions.DataSets;
44
using JetBrains.Annotations;
55

6+
// ReSharper disable once CheckNamespace
67
namespace FluentAssertions;
78

89
/// <summary>

Src/FluentAssertions.DataSets/DataRowCollectionAssertionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Data;
33
using System.Linq;
44
using FluentAssertions.Collections;
5-
using FluentAssertions.Common;
65
using FluentAssertions.DataSets.Common;
76
using FluentAssertions.Execution;
87

Src/FluentAssertions.DataSets/DataTableAssertionExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System.Data;
22
using System.Diagnostics;
3+
using FluentAssertions.DataSets;
34
using JetBrains.Annotations;
45

6+
// ReSharper disable once CheckNamespace
57
namespace FluentAssertions;
68

79
/// <summary>

Src/FluentAssertions.DataSets/DataTableAssertions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
using System.Data;
44
using System.Diagnostics;
55
using System.Linq;
6-
using FluentAssertions.DataSets;
76
using FluentAssertions.DataSets.Common;
87
using FluentAssertions.Equivalency;
98
using FluentAssertions.Execution;
109
using FluentAssertions.Primitives;
1110

12-
namespace FluentAssertions;
11+
namespace FluentAssertions.DataSets;
1312

1413
/// <summary>
1514
/// Provides convenient assertion methods on a <see cref="DataTable"/> that can be

0 commit comments

Comments
 (0)