Skip to content

Commit af9206d

Browse files
author
Bart Koelman
committed
AV1115: Member contains the word 'and', which suggests doing multiple things
1 parent a303a33 commit af9206d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/JsonApiDotNetCore/Hooks/Internal/Execution/HookExecutorHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public IEnumerable LoadDbValues(LeftType resourceTypeForRepository, IEnumerable
9494
LeftType idType = TypeHelper.GetIdType(resourceTypeForRepository);
9595

9696
MethodInfo parameterizedGetWhere =
97-
GetType().GetMethod(nameof(GetWhereAndInclude), BindingFlags.NonPublic | BindingFlags.Instance)!.MakeGenericMethod(resourceTypeForRepository,
97+
GetType().GetMethod(nameof(GetWhereWithInclude), BindingFlags.NonPublic | BindingFlags.Instance)!.MakeGenericMethod(resourceTypeForRepository,
9898
idType);
9999

100100
IEnumerable<IIdentifiable> cast = ((IEnumerable<object>)resources).Cast<IIdentifiable>();
@@ -153,7 +153,7 @@ private IHooksDiscovery GetHookDiscovery(LeftType resourceType)
153153
return discovery;
154154
}
155155

156-
private IEnumerable<TResource> GetWhereAndInclude<TResource, TId>(IReadOnlyCollection<TId> ids, RelationshipAttribute[] relationshipsToNextLayer)
156+
private IEnumerable<TResource> GetWhereWithInclude<TResource, TId>(IReadOnlyCollection<TId> ids, RelationshipAttribute[] relationshipsToNextLayer)
157157
where TResource : class, IIdentifiable<TId>
158158
{
159159
if (!ids.Any())

test/JsonApiDotNetCoreExampleTests/IntegrationTests/RequiredRelationships/Shipment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
using JsonApiDotNetCore.Resources;
44
using JsonApiDotNetCore.Resources.Annotations;
55

6+
#pragma warning disable AV1115 // Member or local function contains the word 'and', which suggests doing multiple things
7+
68
namespace JsonApiDotNetCoreExampleTests.IntegrationTests.RequiredRelationships
79
{
810
[UsedImplicitly(ImplicitUseTargetFlags.Members)]

0 commit comments

Comments
 (0)