Skip to content

Commit 5160442

Browse files
authored
Updated code to remove unnecessary blank lines (#8347)
1 parent cd804ed commit 5160442

File tree

60 files changed

+3
-65
lines changed

Some content is hidden

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

60 files changed

+3
-65
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ dotnet_diagnostic.IDE0305.severity = silent # see https://github.com/dotnet/rosl
190190
# Use collection expression for new.
191191
dotnet_diagnostic.IDE0306.severity = warning
192192
dotnet_style_prefer_collection_expression = when_types_exactly_match
193+
# Remove unnecessary blank line.
194+
dotnet_diagnostic.RCS0063.severity = warning
195+
dotnet_diagnostic.RCS1036.severity = none # see https://github.com/dotnet/roslynator/issues/1632
193196
# Unnecessary null-forgiving operator.
194197
dotnet_diagnostic.RCS1249.severity = warning
195198
# Remove unnecessary braces.

src/GreenDonut/src/GreenDonut.Data.EntityFramework/Expressions/ExpressionHelpers.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public static (Expression<Func<T, bool>> WhereExpression, int Offset) BuildWhere
104104
return (Expression.Lambda<Func<T, bool>>(expression!, parameter), cursor.Offset ?? 0);
105105
}
106106

107-
108107
/// <summary>
109108
/// Build the select expression for a batch paging expression that uses grouping.
110109
/// </summary>

src/GreenDonut/src/GreenDonut.Data.EntityFramework/Expressions/QueryHelpers.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public static IQueryable<T> EnsureGroupPropsAreSelected<T, TKey>(
5353

5454
return body as MemberExpression;
5555
}
56-
5756
}
5857

5958
private static Expression<Func<T, T>>? ExtractCurrentSelector<T>(

src/GreenDonut/src/GreenDonut/CacheDataLoader.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ protected internal sealed override async ValueTask FetchAsync(
2929
{
3030
var value = await LoadSingleAsync(keys[i], cancellationToken).ConfigureAwait(false);
3131
results.Span[i] = value;
32-
3332
}
3433
catch (Exception ex)
3534
{
@@ -79,7 +78,6 @@ protected internal sealed override async ValueTask FetchAsync(
7978
{
8079
var value = await LoadSingleAsync(keys[i], context, cancellationToken).ConfigureAwait(false);
8180
results.Span[i] = value;
82-
8381
}
8482
catch (Exception ex)
8583
{

src/GreenDonut/test/GreenDonut.Data.Tests/Cursors/CursorKeySerializerHelperTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public static void String_With_Colon_Format_And_Parse()
151151
CursorKeySerializerHelper.TryFormat(key, s_serializer, buffer, out var written);
152152
var parsedString =CursorKeySerializerHelper.Parse(buffer[..written], s_serializer);
153153

154-
155154
// assert
156155
Assert.Equal(key, parsedString);
157156
}

src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/BuiltInTypesSharableTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public async Task Ensure_PagingInfo_Is_Sharable_When_Sharable_Already_Registered
3636
schema.MatchSnapshot();
3737
}
3838

39-
4039
public class Query
4140
{
4241
[UsePaging]

src/HotChocolate/AspNetCore/src/AspNetCore.Authorization.Opa/Extensions/HotChocolateAuthorizeRequestExecutorBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,4 @@ public static IRequestExecutorBuilder AddOpaQueryRequestExtensionsHandler(
9797
(o, _) => o.OpaQueryRequestExtensionsHandlers.Add(policyPath, opaQueryRequestExtensionsHandler));
9898
return builder;
9999
}
100-
101100
}

src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/DefaultHttpResponseFormatter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ CachedSchemaOutput Update(string _)
283283
=> new(schema, version, _timeProvider.UtcNow);
284284
}
285285

286-
287286
/// <summary>
288287
/// Determines which status code shall be returned for this result.
289288
/// </summary>

src/HotChocolate/Caching/test/Caching.Memory.Tests/CacheTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public void Evict_Items_That_Were_Not_Recently_Access_When_Cache_Is_Full()
102102
Assert.True(cache.TryGet("d", out _));
103103
cache.GetOrCreate("z", _ => "z");
104104

105-
106105
// assert
107106
Assert.Collection(
108107
cache.GetKeys(),

src/HotChocolate/Core/src/Execution/Configuration/RequestExecutorSetup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,3 @@ public void CopyTo(RequestExecutorSetup options)
124124
}
125125
}
126126
}
127-

0 commit comments

Comments
 (0)