Update qodana.yml #149
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
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
Use explicit or implicit modifier definition for types
Inconsistent modifiers style: missing 'internal' modifier
github-actions / Qodana for .NET
Use explicit or implicit modifier definition for types
Inconsistent modifiers style: missing 'internal' modifier
github-actions / Qodana for .NET
Use explicit or implicit modifier definition for types
Inconsistent modifiers style: missing 'internal' modifier
github-actions / Qodana for .NET
Use explicit or implicit modifier definition for types
Inconsistent modifiers style: missing 'internal' modifier
github-actions / Qodana for .NET
Use explicit or implicit modifier definition for types
Inconsistent modifiers style: missing 'internal' modifier
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
github-actions / Qodana for .NET
Use explicit or implicit modifier definition for types
Inconsistent modifiers style: missing 'internal' modifier
github-actions / Qodana for .NET
Use explicit or implicit modifier definition for types
Inconsistent modifiers style: missing 'internal' modifier
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
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
github-actions / Qodana for .NET
Cast expression can be replaced with explicit variable type
Cast expression can be replaced with statically typed language construct
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body
github-actions / Qodana for .NET
Empty element content
XML tag has empty body