Skip to content

Commit 159771c

Browse files
authored
Introduce ImplicitUsings (#228)
1 parent 2eb8cb0 commit 159771c

File tree

109 files changed

+11
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+11
-268
lines changed

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,7 @@ dotnet_naming_style.end_in_async_style.required_suffix = Async
259259
dotnet_naming_rule.async_methods_end_in_async.severity = suggestion
260260

261261
# Remove unnecessary import https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005
262-
dotnet_diagnostic.IDE0005.severity = warning
262+
dotnet_diagnostic.IDE0005.severity = error
263+
264+
# Enforce formatting https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#rule-id-ide0055-fix-formatting
265+
dotnet_diagnostic.IDE0055.severity = error

src/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">True</ContinuousIntegrationBuild>
2222
<EnableNETAnalyzers>true</EnableNETAnalyzers>
2323
<Nullable>enable</Nullable>
24+
<ImplicitUsings>enable</ImplicitUsings>
2425
<PackageReadmeFile Condition="'$(IsPackable)' == 'true'">README.md</PackageReadmeFile>
2526
</PropertyGroup>
2627

src/GraphQLParser.ApiTests/ApiApprovalTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
21
using System.Diagnostics;
3-
using System.IO;
4-
using System.Linq;
52
using System.Reflection;
63
using System.Xml.Linq;
74
using PublicApiGenerator;

src/GraphQLParser.Benchmarks/Benchmarks/BenchmarkBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using BenchmarkDotNet.Attributes;
32

43
namespace GraphQLParser.Benchmarks;

src/GraphQLParser.Benchmarks/Benchmarks/ParserBenchmark.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using System.Collections.Generic;
21
using System.Collections.Immutable;
32
using System.Globalization;
4-
using System.Linq;
53
using BenchmarkDotNet.Attributes;
64
using BenchmarkDotNet.Configs;
75
using BenchmarkDotNet.Order;

src/GraphQLParser.Benchmarks/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using System;
2-
using System.IO;
3-
using System.Threading;
41
using BenchmarkDotNet.Running;
52

63
namespace GraphQLParser.Benchmarks;

src/GraphQLParser.Tests/Extensions.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
using System;
2-
using System.IO;
3-
using GraphQLParser.AST;
4-
51
namespace GraphQLParser.Tests;
62

73
internal static class ParserTestExtensions

src/GraphQLParser.Tests/GraphQLParser.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@
3636
</None>
3737
</ItemGroup>
3838

39+
<ItemGroup>
40+
<Using Include="GraphQLParser.AST" />
41+
<Using Include="Shouldly" />
42+
<Using Include="Xunit" />
43+
</ItemGroup>
44+
3945
</Project>

src/GraphQLParser.Tests/Issues/Issue127.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
using GraphQLParser.AST;
2-
using Shouldly;
3-
using Xunit;
4-
51
namespace GraphQLParser.Tests;
62

73
// https://github.com/graphql-dotnet/parser/issues/127

src/GraphQLParser.Tests/Issues/Issue2478_GraphQL_NET.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
using System.Linq;
2-
using GraphQLParser.AST;
3-
using Shouldly;
4-
using Xunit;
5-
61
namespace GraphQLParser.Tests;
72

83
public class Issue2478_GraphQL_NET

0 commit comments

Comments
 (0)