Skip to content

Commit 554df4b

Browse files
author
Bart Koelman
committed
Addressed cleanupcode/inspectcode issues
1 parent 8a4a05d commit 554df4b

26 files changed

+68
-2
lines changed

Build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ function CheckLastExitCode {
88

99
function RunInspectCode {
1010
$outputPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), 'jetbrains-inspectcode-results.xml')
11-
dotnet jb inspectcode JsonApiDotNetCore.sln --no-build --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl=ProjectPersonal
11+
# passing --build instead of --no-build to work around https://youtrack.jetbrains.com/issue/RSRP-487054
12+
dotnet jb inspectcode JsonApiDotNetCore.sln --build --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=GlobalPerProduct -dsl=SolutionPersonal -dsl=ProjectPersonal
1213
CheckLastExitCode
1314

1415
[xml]$xml = Get-Content "$outputPath"

src/JsonApiDotNetCore/Controllers/JsonApiEndpoints.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
using System;
2+
using JetBrains.Annotations;
23

34
// ReSharper disable CheckNamespace
45
#pragma warning disable AV1505 // Namespace should match with assembly name
56

67
namespace JsonApiDotNetCore.Controllers
78
{
89
// IMPORTANT: An internal copy of this type exists in the SourceGenerators project. Keep these in sync when making changes.
10+
[PublicAPI]
911
[Flags]
1012
public enum JsonApiEndpoints
1113
{

test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ToothbrushesController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
namespace JsonApiDotNetCoreTests.IntegrationTests.ControllerActionResults
88
{
9+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
10+
public partial class ToothbrushesController
11+
{
12+
}
13+
914
partial class ToothbrushesController
1015
{
1116
internal const int EmptyActionResultId = 11111111;

test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/CiviliansController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
namespace JsonApiDotNetCoreTests.IntegrationTests.CustomRoutes
66
{
7+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
8+
public partial class CiviliansController
9+
{
10+
}
11+
712
[ApiController]
813
[DisableRoutingConvention]
914
[Route("world-civilians")]

test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/TownsController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
namespace JsonApiDotNetCoreTests.IntegrationTests.CustomRoutes
1414
{
15+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
16+
public partial class TownsController
17+
{
18+
}
19+
1520
[DisableRoutingConvention]
1621
[Route("world-api/civilization/popular/towns")]
1722
partial class TownsController

test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/PaintingsController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
namespace JsonApiDotNetCoreTests.IntegrationTests.HostingInIIS
55
{
6+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
7+
public partial class PaintingsController
8+
{
9+
}
10+
611
[DisableRoutingConvention]
712
[Route("custom/path/to/paintings-of-the-world")]
813
partial class PaintingsController

test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/WebProductsController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
namespace JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy
55
{
6+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
7+
public partial class WebProductsController
8+
{
9+
}
10+
611
[DisableRoutingConvention]
712
[Route("{countryCode}/products")]
813
partial class WebProductsController

test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/WebShopsController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
namespace JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy
55
{
6+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
7+
public partial class WebShopsController
8+
{
9+
}
10+
611
[DisableRoutingConvention]
712
[Route("{countryCode}/shops")]
813
partial class WebShopsController

test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/PillowsController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
namespace JsonApiDotNetCoreTests.IntegrationTests.RestrictedControllers
44
{
5+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
6+
public partial class PillowsController
7+
{
8+
}
9+
510
[DisableQueryString("skipCache")]
611
partial class PillowsController
712
{

test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/SofasController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
namespace JsonApiDotNetCoreTests.IntegrationTests.RestrictedControllers
55
{
6+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-487028
7+
public partial class SofasController
8+
{
9+
}
10+
611
[DisableQueryString(JsonApiQueryStringParameters.Sort | JsonApiQueryStringParameters.Page)]
712
partial class SofasController
813
{

0 commit comments

Comments
 (0)