Skip to content

Commit bba9d4d

Browse files
committed
Apply StyleCop.Analyzers to all projects and fix more things
1 parent b1e072a commit bba9d4d

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[*.cs]
22

3+
dotnet_sort_system_directives_first = true
4+
35
# CS8509: The switch expression does not handle all possible values of its input type (it is not exhaustive).
46
dotnet_diagnostic.CS8509.severity = none
57

TfvcMigrator.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DC7A78BA-6257-45FF-9A9B-4FB61DF2BD91}"
99
ProjectSection(SolutionItems) = preProject
1010
.editorconfig = .editorconfig
11+
src\Directory.Build.props = src\Directory.Build.props
1112
EndProjectSection
1213
EndProject
1314
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TfvcMigrator.Tests", "src\TfvcMigrator.Tests\TfvcMigrator.Tests.csproj", "{2EA6C987-0EFC-4C95-8593-663730B40F18}"

src/Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
3+
<ItemGroup>
4+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406" PrivateAssets="all" />
5+
</ItemGroup>
6+
7+
</Project>

src/TfvcMigrator.Tests/EnumerableExtensionsTests/WithLookaheadTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System;
2+
using System.Collections.Generic;
3+
using System.Threading.Tasks;
24
using NSubstitute;
35
using NUnit.Framework;
46
using Shouldly;
5-
using System.Collections.Generic;
6-
using System.Threading.Tasks;
77

88
namespace TfvcMigrator.Tests.EnumerableExtensionsTests
99
{

src/TfvcMigrator.Tests/UtilsTests/ContainsCrlfTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using NUnit.Framework;
1+
using System.IO;
2+
using NUnit.Framework;
23
using Shouldly;
3-
using System.IO;
44

55
namespace TfvcMigrator.Tests.UtilsTests
66
{

src/TfvcMigrator/TfvcMigrator.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
<ItemGroup>
2424
<PackageReference Include="LibGit2Sharp" Version="0.27.0-preview-0175" />
2525
<PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="16.170.0" />
26-
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406">
27-
<PrivateAssets>all</PrivateAssets>
28-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
29-
</PackageReference>
3026
<PackageReference Include="System.CommandLine" Version="2.0.0-beta2.21617.1" />
3127
<PackageReference Include="TaskTupleAwaiter" Version="2.0.0" />
3228
</ItemGroup>

0 commit comments

Comments
 (0)