Skip to content

Update qodana.yml

Update qodana.yml #149

GitHub Actions / Qodana for .NET completed Jul 9, 2025 in 0s

714 new problems found by Qodana for .NET

Qodana for .NET

714 new problems were found

Inspection name Severity Problems
Compliance with JSON standard 🔴 Failure 13
Unknown property 🔶 Warning 47
Empty element content 🔶 Warning 20
Redundant 'partial' modifier on type declaration 🔶 Warning 9
TargetFramework tag checks 🔶 Warning 4
Ignore file duplicates 🔶 Warning 2
Invert 'if' statement to reduce nesting ◽️ Notice 290
Convert 'if' statement into 'switch' ◽️ Notice 52
Part of loop's body can be converted into LINQ-expression ◽️ Notice 43
Convert delegate variable into local function ◽️ Notice 37
Member can be made static (shared) (private accessibility) ◽️ Notice 30
'if-return' statement can be rewritten as 'return' statement ◽️ Notice 26
Use collection expression syntax ◽️ Notice 22
Similar anonymous type detected nearby ◽️ Notice 20
Loop can be converted into LINQ-expression ◽️ Notice 19
Member can be made static (shared) (non-private accessibility) ◽️ Notice 14
Use explicit or implicit modifier definition for types ◽️ Notice 9
The relationship defined by this property contributes to a dependency loop ◽️ Notice 7
Foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used ◽️ Notice 7
Route parameter constraint can be added due to type of method argument ◽️ Notice 6
Add explicit 'return' or 'continue' before local functions ◽️ Notice 6
Some values of the enum are not processed inside 'switch' statement ◽️ Notice 5
Extract common code ◽️ Notice 4
Part of foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used ◽️ Notice 4
Inline temporary variable ◽️ Notice 4
Class is never instantiated (non-private accessibility) ◽️ Notice 3
Some values of the enum are not processed inside 'switch' statement and are handled via default section ◽️ Notice 3
Type member is never used (non-private accessibility) ◽️ Notice 3
Cast expression can be replaced with lambda return type ◽️ Notice 1
Cast expression can be replaced with explicit variable type ◽️ Notice 1
Duplicated chained 'if' branches ◽️ Notice 1
Duplicated sequential 'if' branches ◽️ Notice 1
Some values of the enum are not processed inside 'switch' expression and are handled via exception in default arm ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Detected 155 dependencies

Third-party software list

This page lists the third-party software dependencies used in JsonApiDotNetCore

Dependency Version Licenses
Azure.Core 1.38.0 MIT
Azure.Identity 1.11.4 MIT
Ben.Demystifier 0.4.1 Apache-2.0
BenchmarkDotNet.Annotations 0.15.2 MIT
BenchmarkDotNet 0.15.2 MIT
CSharpGuidelinesAnalyzer 3.8.0 Apache-2.0
CommandLineParser 2.9.1 MIT
Dapper 2.1.66 Apache-2.0
Gee.External.Capstone 2.3.0 MIT
Humanizer.Core 2.14.1 MIT
Iced 1.21.0 MIT
JetBrains.Annotations 2024.3.0 MIT
Microsoft.Bcl.AsyncInterfaces 1.1.1 MIT
Microsoft.CSharp 4.5.0 MIT
Microsoft.CodeAnalysis.Analyzers 3.11.0 MIT
Microsoft.CodeAnalysis.Analyzers 3.3.3 MIT
Microsoft.CodeAnalysis.CSharp 4.1.0 MIT
Microsoft.CodeAnalysis.CSharp 4.14.0 MIT
Microsoft.CodeAnalysis.Common 4.1.0 MIT
Microsoft.CodeAnalysis.Common 4.14.0 MIT
Microsoft.Data.SqlClient.SNI.runtime 5.1.1 MS-NET-LIBRARY-2019-06
Microsoft.Data.SqlClient 5.1.6 MIT
Microsoft.Diagnostics.NETCore.Client 0.2.510501 MIT
Microsoft.Diagnostics.Runtime 3.1.512801 MIT
Microsoft.Diagnostics.Tracing.TraceEvent 3.1.21 MIT
Microsoft.DotNet.PlatformAbstractions 3.1.6 MIT
Microsoft.EntityFrameworkCore.Abstractions 8.0.0 MIT
Microsoft.EntityFrameworkCore.Abstractions 8.0.18 MIT
Microsoft.EntityFrameworkCore.Analyzers 8.0.0 MIT
Microsoft.EntityFrameworkCore.Analyzers 8.0.18 MIT
Microsoft.EntityFrameworkCore.Relational 8.0.0 MIT
Microsoft.EntityFrameworkCore.Relational 8.0.18 MIT
Microsoft.EntityFrameworkCore.SqlServer 8.0.18 MIT
Microsoft.EntityFrameworkCore.Sqlite 8.0.0 MIT
Microsoft.EntityFrameworkCore.Sqlite 9.0.0 MIT
Microsoft.EntityFrameworkCore 8.0.0 MIT
Microsoft.EntityFrameworkCore 8.0.18 MIT
Microsoft.Extensions.ApiDescription.Client 9.0.0 MIT
Microsoft.Extensions.ApiDescription.Client 9.0.7 MIT
Microsoft.Extensions.ApiDescription.Server 8.0.0 MIT
Microsoft.Extensions.ApiDescription.Server 9.0.0 MIT
Microsoft.Extensions.Caching.Abstractions 8.0.0 MIT
Microsoft.Extensions.Caching.Memory 8.0.0 MIT
Microsoft.Extensions.Caching.Memory 8.0.1 MIT
Microsoft.Extensions.Configuration.Abstractions 8.0.0 MIT
Microsoft.Extensions.Configuration.Abstractions 9.0.7 MIT
Microsoft.Extensions.Configuration.Binder 9.0.7 MIT
Microsoft.Extensions.Configuration.CommandLine 9.0.7 MIT
Microsoft.Extensions.Configuration.EnvironmentVariables 9.0.7 MIT
Microsoft.Extensions.Configuration.FileExtensions 9.0.7 MIT
Microsoft.Extensions.Configuration.Json 9.0.7 MIT
Microsoft.Extensions.Configuration.UserSecrets 9.0.7 MIT
Microsoft.Extensions.Configuration 9.0.7 MIT
Microsoft.Extensions.DependencyInjection.Abstractions 8.0.0 MIT
Microsoft.Extensions.DependencyInjection.Abstractions 8.0.2 MIT
Microsoft.Extensions.DependencyInjection.Abstractions 9.0.7 MIT
Microsoft.Extensions.DependencyInjection 8.0.0 MIT
Microsoft.Extensions.DependencyInjection 8.0.1 MIT
Microsoft.Extensions.DependencyInjection 9.0.7 MIT
Microsoft.Extensions.Diagnostics.Abstractions 9.0.7 MIT
Microsoft.Extensions.Diagnostics 9.0.7 MIT
Microsoft.Extensions.FileProviders.Abstractions 9.0.7 MIT
Microsoft.Extensions.FileProviders.Physical 9.0.7 MIT
Microsoft.Extensions.FileSystemGlobbing 9.0.7 MIT
Microsoft.Extensions.Hosting.Abstractions 9.0.7 MIT
Microsoft.Extensions.Hosting 9.0.7 MIT
Microsoft.Extensions.Http 9.0.7 MIT
Microsoft.Extensions.Logging.Abstractions 8.0.0 MIT
Microsoft.Extensions.Logging.Abstractions 8.0.2 MIT
Microsoft.Extensions.Logging.Abstractions 9.0.7 MIT
Microsoft.Extensions.Logging.Configuration 9.0.7 MIT
Microsoft.Extensions.Logging.Console 9.0.7 MIT
Microsoft.Extensions.Logging.Debug 9.0.7 MIT
Microsoft.Extensions.Logging.EventLog 9.0.7 MIT
Microsoft.Extensions.Logging.EventSource 9.0.7 MIT
Microsoft.Extensions.Logging 8.0.0 MIT
Microsoft.Extensions.Logging 8.0.1 MIT
Microsoft.Extensions.Logging 9.0.7 MIT
Microsoft.Extensions.Options.ConfigurationExtensions 9.0.7 MIT
Microsoft.Extensions.Options 8.0.0 MIT
Microsoft.Extensions.Options 8.0.2 MIT
Microsoft.Extensions.Options 9.0.7 MIT
Microsoft.Extensions.Primitives 8.0.0 MIT
Microsoft.Extensions.Primitives 9.0.7 MIT
Microsoft.Identity.Client.Extensions.Msal 4.61.3 MIT
Microsoft.Identity.Client 4.61.3 MIT
Microsoft.IdentityModel.Abstractions 6.35.0 MIT
Microsoft.IdentityModel.JsonWebTokens 6.35.0 MIT
Microsoft.IdentityModel.Logging 6.35.0 MIT
Microsoft.IdentityModel.Protocols.OpenIdConnect 6.35.0 MIT
Microsoft.IdentityModel.Protocols 6.35.0 MIT
Microsoft.IdentityModel.Tokens 6.35.0 MIT
Microsoft.Kiota.Abstractions 1.19.0 MIT
Microsoft.Kiota.Bundle 1.19.0 MIT
Microsoft.Kiota.Http.HttpClientLibrary 1.19.0 MIT
Microsoft.Kiota.Serialization.Form 1.19.0 MIT
Microsoft.Kiota.Serialization.Json 1.19.0 MIT
Microsoft.Kiota.Serialization.Multipart 1.19.0 MIT
Microsoft.Kiota.Serialization.Text 1.19.0 MIT
Microsoft.NETCore.Platforms 5.0.0 MIT
Microsoft.OpenApi 1.6.23 MIT
Microsoft.SqlServer.Server 1.0.0 MIT
Microsoft.Win32.Registry 5.0.0 MIT
Microsoft.Win32.SystemEvents 6.0.0 MIT
MySqlConnector 2.3.5 MIT
NSwag.ApiDescription.Client 14.4.0 MIT
NSwag.MSBuild 14.4.0 MIT
Newtonsoft.Json 13.0.3 MIT
Npgsql.EntityFrameworkCore.PostgreSQL 8.0.11 PostgreSQL
Npgsql 8.0.6 PostgreSQL
Perfolizer 0.5.3 MIT
Pomelo.EntityFrameworkCore.MySql 8.0.3 MIT
SauceControl.InheritDoc 2.0.0 MIT
Scalar.AspNetCore 2.4.22 MIT
Std.UriTemplate 2.0.5 Apache-2.0
Swashbuckle.AspNetCore.ReDoc 9.0.3 MIT
Swashbuckle.AspNetCore.Swagger 9.0.1 MIT
Swashbuckle.AspNetCore.SwaggerGen 9.0.1 MIT
Swashbuckle.AspNetCore.SwaggerUI 9.0.1 MIT
Swashbuckle.AspNetCore 9.0.1 MIT
System.Buffers 4.5.1 MIT
System.ClientModel 1.0.0 MIT
System.CodeDom 9.0.5 MIT
System.Collections.Immutable 5.0.0 MIT
System.Collections.Immutable 9.0.0 MIT
System.Configuration.ConfigurationManager 6.0.1 MIT
System.Diagnostics.DiagnosticSource 6.0.1 MIT
System.Diagnostics.EventLog 9.0.7 MIT
System.Drawing.Common 6.0.0 MIT
System.Formats.Asn1 8.0.2 MIT
System.IdentityModel.Tokens.Jwt 6.35.0 MIT
System.Management 9.0.5 MIT
System.Memory.Data 1.0.2 MIT
System.Memory 4.5.4 MIT
System.Numerics.Vectors 4.4.0 MIT
System.Numerics.Vectors 4.5.0 MIT
System.Reflection.Metadata 5.0.0 MIT
System.Reflection.Metadata 9.0.0 MIT
System.Reflection.TypeExtensions 4.7.0 MIT
System.Runtime.Caching 6.0.0 MIT
System.Runtime.CompilerServices.Unsafe 5.0.0 MIT
System.Runtime.CompilerServices.Unsafe 6.0.0 MIT
System.Security.AccessControl 5.0.0 MIT
System.Security.AccessControl 6.0.0 MIT
System.Security.Cryptography.Cng 5.0.0 MIT
System.Security.Cryptography.ProtectedData 6.0.0 MIT
System.Security.Permissions 6.0.0 MIT
System.Security.Principal.Windows 5.0.0 MIT
System.Text.Encoding.CodePages 4.5.1 MIT
System.Text.Encoding.CodePages 6.0.0 MIT
System.Text.Encodings.Web 6.0.0 MIT
System.Text.Json 4.7.2 MIT
System.Text.Json 8.0.5 MIT
System.Threading.Tasks.Extensions 4.5.4 MIT
System.Windows.Extensions 6.0.0 MIT
Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check notice on line 8 in test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/WebProductsController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 6 in test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/PillowsController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 8 in test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/WebShopsController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 8 in test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/PaintingsController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 9 in test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/CiviliansController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 7 in test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/SofasController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 8 in src/Examples/DatabasePerTenantExample/Controllers/EmployeesController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 7 in test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ToothbrushesController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 13 in test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/TownsController.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use explicit or implicit modifier definition for types

Inconsistent modifiers style: missing 'internal' modifier

Check notice on line 222 in src/JsonApiDotNetCore/Serialization/Response/LinkBuilder.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Cast expression can be replaced with lambda return type

Cast expression can be replaced with statically typed language construct

Check notice on line 29 in src/Examples/DapperExample/AtomicOperations/AmbientTransactionFactory.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Cast expression can be replaced with explicit variable type

Cast expression can be replaced with statically typed language construct

Check warning on line 28 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 32 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 26 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 25 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 35 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 21 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 24 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 46 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 29 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 37 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 38 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 40 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 34 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body

Check warning on line 31 in src/JsonApiDotNetCore.OpenApi.Client.Kiota/Build/JsonApiDotNetCore.OpenApi.Client.Kiota.props

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Empty element content

XML tag has empty body