Updated Recent Highlights Banner #52
5134 new problems found by Qodana for .NET
Qodana for .NET
5134 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Namespace does not correspond to file location |
🔶 Warning | 1420 |
Auto-property accessor is never used (non-private accessibility) |
🔶 Warning | 1025 |
Unused parameter (private accessibility) |
🔶 Warning | 235 |
Member hides static member from outer class |
🔶 Warning | 197 |
Possible 'null' assignment to non-nullable entity |
🔶 Warning | 194 |
Possible unassigned object created by 'new' expression |
🔶 Warning | 187 |
Redundant argument with default value |
🔶 Warning | 147 |
Virtual member call in constructor |
🔶 Warning | 129 |
Return type of a function can be non-nullable |
🔶 Warning | 103 |
Parameter is only used for precondition check (private accessibility) |
🔶 Warning | 94 |
Redundant nullable warning suppression expression |
🔶 Warning | 92 |
Unused local variable |
🔶 Warning | 87 |
Get-only auto-property is never assigned |
🔶 Warning | 77 |
Collection is never updated (private accessibility) |
🔶 Warning | 70 |
Use preferred namespace body style |
🔶 Warning | 67 |
Non-accessed positional property (non-private accessibility) |
🔶 Warning | 67 |
Assignment is not used |
🔶 Warning | 65 |
Variable in local function hides variable from outer scope |
🔶 Warning | 62 |
Redundant using directive |
🔶 Warning | 61 |
Redundant cast |
🔶 Warning | 51 |
'??' condition is known to be null or not null |
🔶 Warning | 50 |
Type member is never used (private accessibility) |
🔶 Warning | 50 |
Expression is always 'null' |
🔶 Warning | 47 |
Redundant nullable directive |
🔶 Warning | 45 |
Potentially misleading parameter name in lambda or local function |
🔶 Warning | 36 |
Element is localizable |
🔶 Warning | 28 |
Expression is always 'true' or 'false' according to nullable reference types' annotations |
🔶 Warning | 23 |
Explicit delegate creation expression is redundant |
🔶 Warning | 22 |
Redundant name qualifier |
🔶 Warning | 22 |
Conditional access qualifier expression is known to be null or not null |
🔶 Warning | 21 |
Non-accessed local variable |
🔶 Warning | 17 |
Conditional access qualifier expression is not null according to nullable reference types' annotations |
🔶 Warning | 16 |
Non-accessed field (private accessibility) |
🔶 Warning | 16 |
Possible 'System.NullReferenceException' |
🔶 Warning | 16 |
Collection is never updated (non-private accessibility) |
🔶 Warning | 15 |
Return value must be disposed but the method or function is not annotated with [MustDisposeResource] |
🔶 Warning | 15 |
Auto-property accessor is never used (private accessibility) |
🔶 Warning | 15 |
Do not use object initializer for 'using' variable |
🔶 Warning | 15 |
Redundant type arguments of method |
🔶 Warning | 14 |
Access to disposed captured variable |
🔶 Warning | 13 |
Unused nullable directive |
🔶 Warning | 12 |
Possible performance issues caused by unlimited string length |
🔶 Warning | 11 |
Duplicate resource name |
🔶 Warning | 10 |
Empty constructor |
🔶 Warning | 10 |
Redundant member initializer |
🔶 Warning | 10 |
Unused type parameter |
🔶 Warning | 10 |
Method return value is never used (private accessibility) |
🔶 Warning | 9 |
Use null check pattern instead of a type check succeeding on any not-null value |
🔶 Warning | 8 |
Empty statement is redundant |
🔶 Warning | 8 |
Redundant explicit type in array creation |
🔶 Warning | 8 |
'??' condition is never null according to nullable reference types' annotations |
🔶 Warning | 7 |
Possible multiple enumeration |
🔶 Warning | 6 |
Redundant 'Attribute' suffix |
🔶 Warning | 6 |
Variable can be declared as non-nullable |
🔶 Warning | 6 |
Usage of <inheritdoc /> is invalid |
🔶 Warning | 5 |
Redundant class or interface specification in base types list |
🔶 Warning | 5 |
Static field or auto-property in generic type |
🔶 Warning | 5 |
Collection content is never queried (non-private accessibility) |
🔶 Warning | 4 |
Inconsistent synchronization on field |
🔶 Warning | 4 |
Non-accessed positional property (private accessibility) |
🔶 Warning | 4 |
Type is never used (private accessibility) |
🔶 Warning | 4 |
Disposal of a variable already captured by the 'using' statement |
🔶 Warning | 3 |
Return value of 'GetEnumerator' method call is never disposed |
🔶 Warning | 3 |
Heuristically unreachable code |
🔶 Warning | 3 |
Invalid XML documentation comment |
🔶 Warning | 3 |
Member initialized value ignored |
🔶 Warning | 3 |
Cannot resolve symbol in text argument |
🔶 Warning | 3 |
Private field can be converted into local variable |
🔶 Warning | 3 |
Return value of pure method is not used |
🔶 Warning | 3 |
Access to modified captured variable |
🔶 Warning | 2 |
Expression is always 'true' or always 'false' |
🔶 Warning | 2 |
Explicit argument passed to parameter with caller info attribute |
🔶 Warning | 2 |
Redundant 'partial' modifier on type declaration |
🔶 Warning | 2 |
Redundant nullable attribute |
🔶 Warning | 2 |
Return of a task produced by 'using'-captured object |
🔶 Warning | 2 |
Suspicious type conversion or check |
🔶 Warning | 2 |
Co-variant array conversion |
🔶 Warning | 1 |
Collection content is never queried (private accessibility) |
🔶 Warning | 1 |
Empty general catch clause |
🔶 Warning | 1 |
Entity is only used to capture its name (private accessibility) |
🔶 Warning | 1 |
Underlying type of enum is 'int' |
🔶 Warning | 1 |
Similar expressions comparison |
🔶 Warning | 1 |
Non-nullable or required member is not initialized at constructor exit |
🔶 Warning | 1 |
The source expression never matches the provided pattern |
🔶 Warning | 1 |
Redundant anonymous type property explicit name |
🔶 Warning | 1 |
Redundant base constructor call |
🔶 Warning | 1 |
Redundant empty object or collection initializer |
🔶 Warning | 1 |
Redundant control flow jump statement |
🔶 Warning | 1 |
Redundant arithmetic overflow checking context |
🔶 Warning | 1 |
Redundant 'WithCancellation()' invocation |
🔶 Warning | 1 |
Suspicious parameter name in ArgumentNullException |
🔶 Warning | 1 |
Redundant 'base.' qualifier |
◽️ Notice | 3 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report
Contact Qodana team
Contact us at [email protected]
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
Details
This result was published with Qodana GitHub Action
Annotations
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
Check warning on line 22 in StrawberryShake/Tooling/src/dotnet-graphql/Program.cs
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
Check warning on line 184 in HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
Check warning on line 63 in HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/WebSocketSession.cs
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
github-actions / Qodana for .NET
Access to disposed captured variable
Captured variable is disposed in the outer scope
Check warning on line 28 in HotChocolate/Diagnostics/test/Diagnostics.Tests/ActivityTestHelper.cs
github-actions / Qodana for .NET
Access to modified captured variable
Captured variable is modified in the outer scope
github-actions / Qodana for .NET
Access to modified captured variable
Captured variable is modified in the outer scope
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
Check warning on line 74 in HotChocolate/Core/test/Types.Tests/Types/DescriptionTests.cs
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
Check warning on line 506 in HotChocolate/Core/test/Types.Tests/Types/ObjectTypeTests.cs
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
Check warning on line 531 in HotChocolate/Core/test/Types.Tests/Types/ObjectTypeTests.cs
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
Check warning on line 130 in HotChocolate/Core/test/Types.Tests/Types/DescriptionTests.cs
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages
Check warning on line 45 in HotChocolate/Core/test/Types.Tests/Types/DescriptionTests.cs
github-actions / Qodana for .NET
Potentially misleading parameter name in lambda or local function
The '_' name is typically reserved for parameters without usages