Skip to content

Commit 2f17d14

Browse files
authored
Merge pull request #93 from nanotaboada/feature/codacy-config
chore: adjust Codacy exclude paths
2 parents 1abe9dd + 6e23ac2 commit 2f17d14

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.codacy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ exclude_paths:
1313
- "**/Data/**"
1414
- "**/Migrations/**"
1515
- "**/Models/**"
16+
- "**/Utilities/**"
1617
- "**.Tests/**"

Dotnet.Samples.AspNetCore.WebApi.Tests/PlayerControllerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ public async Task GivenGetByIdAsync_WhenServiceRetrieveByIdAsyncReturnsNull_Then
147147

148148
// Act
149149
var response = await controller.GetByIdAsync(It.IsAny<long>()) as NotFound;
150-
;
151150

152151
// Assert
153152
service.Verify(service => service.RetrieveByIdAsync(It.IsAny<long>()), Times.Exactly(1));

Dotnet.Samples.AspNetCore.WebApi/Data/PlayerData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public static List<Player> CreateFromDeserializedJson()
343343
var options = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
344344
var starting11 = JsonSerializer.Deserialize<List<Player>>(json, options);
345345

346-
if (starting11 != null && starting11.Any())
346+
if (starting11 != null && starting11.Count > 0)
347347
{
348348
players.AddRange(starting11);
349349
}

0 commit comments

Comments
 (0)