Skip to content

Bump Microsoft.CodeAnalysis.CSharp to v4.7.* in tests #101

Bump Microsoft.CodeAnalysis.CSharp to v4.7.* in tests

Bump Microsoft.CodeAnalysis.CSharp to v4.7.* in tests #101

Triggered via push September 18, 2023 23:45
Status Success
Total duration 21m 1s
Artifacts

qodana.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 warnings and 384 notices
Convert 'if' statement into 'switch': src/JsonApiDotNetCore/Queries/Parsing/FilterParser.cs#L244
Convert 'if' statement into 'switch' statement
Convert 'if' statement into 'switch': src/JsonApiDotNetCore/Queries/QueryLayerComposer.cs#L277
Convert 'if' statement into 'switch' statement
Convert 'if' statement into 'switch': src/JsonApiDotNetCore/Configuration/ResourceGraph.cs#L164
Convert 'if' statement into 'switch' statement
Convert 'if' statement into 'switch': src/JsonApiDotNetCore/Middleware/TraceLogWriter.cs#L92
Convert 'if' statement into 'switch' statement
Convert 'if' statement into 'switch': src/JsonApiDotNetCore/Queries/QueryLayerComposer.cs#L360
Convert 'if' statement into 'switch' statement
Foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used: src/JsonApiDotNetCore/Diagnostics/CascadingCodeTimer.cs#L89
Loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used
Part of foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used: src/JsonApiDotNetCore/Repositories/EntityFrameworkCoreRepository.cs#L573
Part of loop's body can be converted into LINQ-expression but another 'GetEnumerator' method will be used
Part of foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used: src/JsonApiDotNetCore.SourceGenerators/ControllerSourceGenerator.cs#L122
Part of loop's body can be converted into LINQ-expression but another 'GetEnumerator' method will be used
Invert 'if' statement to reduce nesting: src/JsonApiDotNetCore/Queries/QueryLayer.cs#L65
Invert 'if' statement to reduce nesting
Method invocation is skipped: test/TestBuildingBlocks/NoLoggingWebApplicationFactory.cs#L15
Method invocation is skipped. Compiler will not generate method invocation because the method is conditional, or it is a partial method without implementation.
Member can be made static (shared) (non-private accessibility): src/JsonApiDotNetCore/Configuration/TypeLocator.cs#L66
Method 'GetContainerRegistrationFromAssembly' can be made static
Route parameter constraint can be added due to type of method argument: test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/ToothbrushesController.cs#L15
Route parameter constraint 'int' can be added because the corresponding argument of the method has type 'int'
Route parameter constraint can be added due to type of method argument: test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/TownsController.cs#L25
Route parameter constraint 'int' can be added because the corresponding argument of the method has type 'int'
Add explicit 'return' or 'continue' before local functions: src/Examples/JsonApiDotNetCoreExample/Program.cs#L20
Separate local functions with explicit 'return' statement
Add explicit 'return' or 'continue' before local functions: src/Examples/MultiDbContextExample/Program.cs#L57
Separate local functions with explicit 'return' statement
Add explicit 'return' or 'continue' before local functions: src/Examples/GettingStarted/Program.cs#L43
Separate local functions with explicit 'return' statement
Add explicit 'return' or 'continue' before local functions: src/Examples/DatabasePerTenantExample/Program.cs#L43
Separate local functions with explicit 'return' statement
Parameter can be declared with the base type: src/JsonApiDotNetCore/Serialization/Request/Adapters/RelationshipDataAdapter.cs#L90
Parameter can be of type 'JsonApiDotNetCore.Resources.Annotations.ResourceFieldAttribute'
Parameter can be declared with the base type: src/JsonApiDotNetCore/Serialization/Request/Adapters/ResourceObjectAdapter.cs#L117
Parameter can be of type 'JsonApiDotNetCore.Resources.Annotations.ResourceFieldAttribute'
Parameter can be declared with the base type: src/Examples/NoEntityFrameworkExample/NullSafeExpressionRewriter.cs#L107
Parameter can be of type 'System.Linq.Expressions.Expression'
Parameter can be declared with the base type: src/JsonApiDotNetCore.SourceGenerators/SourceCodeWriter.cs#L99
Parameter can be of type 'Microsoft.CodeAnalysis.ISymbol'
Parameter can be declared with the base type: src/JsonApiDotNetCore.SourceGenerators/SourceCodeWriter.cs#L166
Parameter can be of type 'Microsoft.CodeAnalysis.ISymbol'
Parameter can be declared with the base type: src/JsonApiDotNetCore/Serialization/Response/FingerprintGenerator.cs#L36
Parameter can be of type 'System.Collections.Generic.IReadOnlyList'
Parameter can be declared with the base type: test/JsonApiDotNetCoreTests/IntegrationTests/CompositeKeys/CarExpressionRewriter.cs#L152
Parameter can be of type 'JsonApiDotNetCore.Resources.Annotations.ResourceFieldAttribute'
Parameter can be declared with the base type: src/JsonApiDotNetCore.SourceGenerators/SourceCodeWriter.cs#L141
Parameter can be of type 'Microsoft.CodeAnalysis.ISymbol'
Parameter can be declared with the base type: src/JsonApiDotNetCore.SourceGenerators/SourceCodeWriter.cs#L175
Parameter can be of type 'Microsoft.CodeAnalysis.ISymbol'
Parameter can be declared with the base type: test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionBroadcastDefinition.cs#L97
Parameter can be of type 'JsonApiDotNetCore.Queries.Expressions.QueryExpression?'
Parameter can be declared with the base type: src/JsonApiDotNetCore.SourceGenerators/SourceCodeWriter.cs#L99
Parameter can be of type 'Microsoft.CodeAnalysis.ISymbol'
Parameter can be declared with the base type: src/JsonApiDotNetCore.SourceGenerators/SourceCodeWriter.cs#L121
Parameter can be of type 'Microsoft.CodeAnalysis.ISymbol'
Some values of the enum are not processed inside 'switch' statement: src/JsonApiDotNetCore/Serialization/JsonConverters/ResourceObjectConverter.cs#L56
Some values of the enum are not processed inside switch: None, StartObject, StartArray...
Some values of the enum are not processed inside 'switch' statement: src/JsonApiDotNetCore/Serialization/JsonConverters/SingleOrManyDataConverterFactory.cs#L39
Some values of the enum are not processed inside switch: None, EndObject, PropertyName...
Some values of the enum are not processed inside 'switch' statement: src/JsonApiDotNetCore/Serialization/JsonConverters/ResourceObjectConverter.cs#L166
Some values of the enum are not processed inside switch: None, StartObject, StartArray...