Skip to content

Commit 59f319f

Browse files
committed
Package updates
1 parent 71e5398 commit 59f319f

File tree

5 files changed

+3
-11
lines changed

5 files changed

+3
-11
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0" PrivateAssets="All" />
20-
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.8.0" PrivateAssets="All" />
19+
<PackageReference Include="JetBrains.Annotations" Version="2022.1.0" PrivateAssets="All" />
20+
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.8.1" PrivateAssets="All" />
2121
<AdditionalFiles Include="$(MSBuildThisFileDirectory)CSharpGuidelinesAnalyzer.config" Visible="False" />
2222
</ItemGroup>
2323

src/JsonApiDotNetCore/Configuration/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
using Microsoft.EntityFrameworkCore;
77
using Microsoft.Extensions.DependencyInjection;
88

9-
#pragma warning disable AV1130 // Return type in method signature should be an interface to an unchangeable collection
10-
119
namespace JsonApiDotNetCore.Configuration;
1210

1311
[PublicAPI]

src/JsonApiDotNetCore/Queries/Expressions/QueryableHandlerExpression.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ public QueryableHandlerExpression(object queryableHandler, StringValues paramete
2121
_parameterValue = parameterValue;
2222
}
2323

24-
#pragma warning disable AV1130 // Return type in method signature should be an interface to an unchangeable collection
2524
public IQueryable<TResource> Apply<TResource>(IQueryable<TResource> query)
2625
where TResource : class, IIdentifiable
27-
#pragma warning restore AV1130 // Return type in method signature should be an interface to an unchangeable collection
2826
{
2927
var handler = (Func<IQueryable<TResource>, StringValues, IQueryable<TResource>>)_queryableHandler;
3028
return handler(query, _parameterValue);

src/JsonApiDotNetCore/Repositories/EntityFrameworkCoreRepository.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ public virtual async Task<int> CountAsync(FilterExpression? filter, Cancellation
105105
}
106106
}
107107

108-
#pragma warning disable AV1130 // Return type in method signature should be an interface to an unchangeable collection
109108
protected virtual IQueryable<TResource> ApplyQueryLayer(QueryLayer queryLayer)
110-
#pragma warning restore AV1130 // Return type in method signature should be an interface to an unchangeable collection
111109
{
112110
_traceWriter.LogMethodStart(new
113111
{
@@ -151,9 +149,7 @@ protected virtual IQueryable<TResource> ApplyQueryLayer(QueryLayer queryLayer)
151149
}
152150
}
153151

154-
#pragma warning disable AV1130 // Return type in method signature should be an interface to an unchangeable collection
155152
protected virtual IQueryable<TResource> GetAll()
156-
#pragma warning restore AV1130 // Return type in method signature should be an interface to an unchangeable collection
157153
{
158154
return _dbContext.Set<TResource>();
159155
}

test/TestBuildingBlocks/TestBuildingBlocks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ItemGroup>
1111
<PackageReference Include="Bogus" Version="34.0.2" />
1212
<PackageReference Include="coverlet.collector" Version="$(CoverletVersion)" PrivateAssets="All" />
13-
<PackageReference Include="FluentAssertions" Version="6.5.1" />
13+
<PackageReference Include="FluentAssertions" Version="6.6.0" />
1414
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="$(AspNetVersion)" />
1515
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(EFCoreVersion)" />
1616
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="$(AspNetVersion)" />

0 commit comments

Comments
 (0)