Skip to content

Commit c0839c1

Browse files
authored
ImplicitUsings (#772)
1 parent 96459e5 commit c0839c1

File tree

89 files changed

+13
-225
lines changed

Some content is hidden

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

89 files changed

+13
-225
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ csharp_space_between_square_brackets = false
195195
csharp_preserve_single_line_blocks = true
196196
csharp_preserve_single_line_statements = false
197197

198+
# C# formatting settings - Namespace options
199+
csharp_style_namespace_declarations = file_scoped:suggestion
200+
198201
########## name all private fields using camelCase with underscore prefix ##########
199202
# https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-naming-conventions?view=vs-2019
200203
# dotnet_naming_rule.<namingRuleTitle>.symbols = <symbolTitle>

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<!-- https://github.com/clairernovotny/DeterministicBuilds -->
1818
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">True</ContinuousIntegrationBuild>
1919
<DebugType>embedded</DebugType>
20+
<ImplicitUsings>enable</ImplicitUsings>
2021
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2122
<EnableNETAnalyzers>true</EnableNETAnalyzers>
2223
<NoWarn>$(NoWarn);1591</NoWarn> <!--TODO: temporary solution-->

Tests.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@
2222
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.0" Condition="'$(TargetFramework)' == 'net6'" />
2323
</ItemGroup>
2424

25+
<ItemGroup>
26+
<Using Include="Shouldly" />
27+
<Using Include="Xunit" />
28+
</ItemGroup>
29+
2530
</Project>

samples/Samples.Schemas.Chat/ChatQuery.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Linq;
21
using GraphQL.Types;
32

43
namespace GraphQL.Samples.Schemas.Chat

samples/Samples.Schemas.Chat/ChatSchema.cs

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

43
namespace GraphQL.Samples.Schemas.Chat

samples/Samples.Schemas.Chat/ChatSubscriptions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using System.Linq;
31
using System.Reactive.Linq;
42
using System.Security.Claims;
53
using GraphQL.Resolvers;

samples/Samples.Schemas.Chat/IChat.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Collections.Concurrent;
32
using System.Reactive.Linq;
43
using System.Reactive.Subjects;

samples/Samples.Schemas.Chat/Message.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
namespace GraphQL.Samples.Schemas.Chat
42
{
53
public class Message

samples/Samples.Schemas.Chat/ReceivedMessage.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
namespace GraphQL.Samples.Schemas.Chat
42
{
53
public class ReceivedMessage

samples/Samples.Server/GraphQLHttpMiddlewareWithLogs.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
using System;
2-
using System.Threading;
3-
using System.Threading.Tasks;
41
using GraphQL.Server.Transports.AspNetCore;
52
using GraphQL.Types;
6-
using Microsoft.AspNetCore.Http;
7-
using Microsoft.Extensions.Logging;
83

94
namespace GraphQL.Samples.Server
105
{

0 commit comments

Comments
 (0)