Skip to content

Commit a8f2f48

Browse files
committed
Use global usings
1 parent f8e5602 commit a8f2f48

30 files changed

+43
-129
lines changed

src/Directory.Build.props

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
4+
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
55
</PropertyGroup>
66

77
<ItemGroup>
88
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406" PrivateAssets="all" />
99
</ItemGroup>
1010

11+
<PropertyGroup>
12+
<ImplicitUsings>enable</ImplicitUsings>
13+
</PropertyGroup>
14+
<ItemGroup>
15+
<Using Include="System.Collections.Immutable" />
16+
<Using Include="System.Diagnostics" />
17+
<Using Include="System.Diagnostics.CodeAnalysis" />
18+
</ItemGroup>
19+
1120
</Project>

src/TfvcMigrator.Tests/EnumerableExtensionsTests/WithLookaheadTests.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Threading.Tasks;
4-
using NSubstitute;
5-
using NUnit.Framework;
6-
using Shouldly;
1+
using NSubstitute;
72

83
namespace TfvcMigrator.Tests.EnumerableExtensionsTests
94
{

src/TfvcMigrator.Tests/TfvcMigrator.Tests.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@
2323
<ProjectReference Include="..\TfvcMigrator\TfvcMigrator.csproj" />
2424
</ItemGroup>
2525

26+
<ItemGroup>
27+
<Using Include="NUnit.Framework" />
28+
<Using Include="Shouldly" />
29+
</ItemGroup>
30+
2631
</Project>

src/TfvcMigrator.Tests/UtilsTests/ContainsCrlfTests.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System.IO;
2-
using NUnit.Framework;
3-
using Shouldly;
4-
5-
namespace TfvcMigrator.Tests.UtilsTests
1+
namespace TfvcMigrator.Tests.UtilsTests
62
{
73
public static class ContainsCrlfTests
84
{

src/TfvcMigrator/ArrayBuilder.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Diagnostics.CodeAnalysis;
3-
4-
namespace TfvcMigrator
1+
namespace TfvcMigrator
52
{
63
/// <summary>
74
/// Enables building an array by setting indexes in any order without having to use an <c>Add</c> method.

src/TfvcMigrator/AsyncParallelQueue.AtomicOperations.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections;
3-
using System.Collections.Generic;
4-
using System.Threading.Tasks;
1+
using System.Collections;
52

63
namespace TfvcMigrator
74
{

src/TfvcMigrator/AsyncParallelQueue.NextOperation.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Diagnostics.CodeAnalysis;
3-
using System.Threading.Tasks;
4-
5-
namespace TfvcMigrator
1+
namespace TfvcMigrator
62
{
73
internal sealed partial class AsyncParallelQueue<T>
84
{

src/TfvcMigrator/AsyncParallelQueue.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections;
3-
using System.Collections.Generic;
4-
using System.Collections.Immutable;
5-
using System.Linq;
6-
using System.Threading;
7-
using System.Threading.Tasks;
1+
using System.Collections;
82

93
namespace TfvcMigrator
104
{

src/TfvcMigrator/BranchIdentifier.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
5-
namespace TfvcMigrator
1+
namespace TfvcMigrator
62
{
73
public sealed class BranchIdentifier
84
{

src/TfvcMigrator/BranchIdentity.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Diagnostics;
3-
4-
namespace TfvcMigrator
1+
namespace TfvcMigrator
52
{
63
[DebuggerDisplay("{ToString(),nq}")]
74
public readonly struct BranchIdentity : IEquatable<BranchIdentity>

0 commit comments

Comments
 (0)