w #4440
171 new problems found by Qodana for .NET
Qodana for .NET
171 new problems were found
| Inspection name | Severity | Problems |
|---|---|---|
Unknown property |
🔶 Warning | 20 |
Expression is always 'true' or 'false' according to nullable reference types' annotations |
🔶 Warning | 1 |
RoslynAnalyzers Convert to 'GeneratedRegexAttribute'. |
◽️ Notice | 42 |
Member can be made private (non-private accessibility) |
◽️ Notice | 33 |
Invert 'if' statement to reduce nesting |
◽️ Notice | 21 |
Part of foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used |
◽️ Notice | 8 |
Property can be made init-only (non-private accessibility) |
◽️ Notice | 7 |
Member can be made protected (non-private accessibility) |
◽️ Notice | 6 |
Type is never used (non-private accessibility) |
◽️ Notice | 6 |
Loop can be converted into LINQ-expression |
◽️ Notice | 5 |
Auto-property can be made get-only (non-private accessibility) |
◽️ Notice | 4 |
RoslynAnalyzers Use concrete types when possible for improved performance |
◽️ Notice | 4 |
Type member is never accessed via base type (non-private accessibility) |
◽️ Notice | 4 |
Type member is never used (private accessibility) |
◽️ Notice | 3 |
Change lock field type to 'System.Threading.Lock' |
◽️ Notice | 2 |
RoslynAnalyzers Validate arguments correctly |
◽️ Notice | 2 |
'if-return' statement can be rewritten as 'return' statement |
◽️ Notice | 1 |
RoslynAnalyzers Use 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time |
◽️ Notice | 1 |
Some values of the enum are not processed inside 'switch' expression and are handled via exception in default arm |
◽️ Notice | 1 |
☁️ View the detailed Qodana report
Detected 62 dependencies
Third-party software list
This page lists the third-party software dependencies used in GitVersion
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
Check notice on line 17 in GitVersion.Core/SemVer/SemanticVersionPreReleaseTag.cs
github-actions / Qodana for .NET
Auto-property can be made get-only (non-private accessibility)
Auto-property can be made get-only
Check notice on line 14 in GitVersion.MsBuild/Tasks/UpdateAssemblyInfo.cs
github-actions / Qodana for .NET
Auto-property can be made get-only (non-private accessibility)
Auto-property can be made get-only
Check notice on line 31 in GitVersion.Core/SemVer/SemanticVersionBuildMetaData.cs
github-actions / Qodana for .NET
Auto-property can be made get-only (non-private accessibility)
Auto-property can be made get-only
Check notice on line 21 in GitVersion.Core/SemVer/SemanticVersionPreReleaseTag.cs
github-actions / Qodana for .NET
Auto-property can be made get-only (non-private accessibility)
Auto-property can be made get-only
Check notice on line 49 in GitVersion.Output.Tests/Output/FormatArgumentTests.cs
github-actions / Qodana for .NET
RoslynAnalyzers Use concrete types when possible for improved performance
Change type of variable 'environment' from 'GitVersion.IEnvironment' to 'GitVersion.Core.Tests.Helpers.TestEnvironment' for improved performance
Check notice on line 10 in GitVersion.App.Tests/Helpers/ProgramFixture.cs
github-actions / Qodana for .NET
RoslynAnalyzers Use concrete types when possible for improved performance
Change type of field 'environment' from 'GitVersion.IEnvironment' to 'GitVersion.Core.Tests.Helpers.TestEnvironment' for improved performance
Check notice on line 78 in GitVersion.Configuration.Tests/Configuration/IgnoreConfigurationTests.cs
github-actions / Qodana for .NET
RoslynAnalyzers Use concrete types when possible for improved performance
Change type of variable 'ignoreConfig' from 'GitVersion.Configuration.IIgnoreConfiguration' to 'GitVersion.Configuration.IgnoreConfiguration' for improved performance
Check notice on line 9 in GitVersion.Core.Tests/Extensions/StringFormatWithExtensionTests.cs
github-actions / Qodana for .NET
RoslynAnalyzers Use concrete types when possible for improved performance
Change type of field 'environment' from 'GitVersion.IEnvironment' to 'GitVersion.Core.Tests.Helpers.TestEnvironment' for improved performance
Check notice on line 8 in GitVersion.Testing/Helpers/ProcessHelper.cs
github-actions / Qodana for .NET
Change lock field type to 'System.Threading.Lock'
Consider changing the type of 'LockObject' field to 'System.Threading.Lock' to express field intent
Check notice on line 5 in GitVersion.Core/Logging/ConsoleAppender.cs
github-actions / Qodana for .NET
Change lock field type to 'System.Threading.Lock'
Consider changing the type of 'locker' field to 'System.Threading.Lock' to express field intent
Check warning on line 37 in GitVersion.Core/Core/SourceBranchFinder.cs
github-actions / Qodana for .NET
Expression is always 'true' or 'false' according to nullable reference types' annotations
Expression is always false according to nullable reference types' annotations
Check notice on line 20 in GitVersion.Core/Helpers/LambdaEqualityHelper.cs
github-actions / Qodana for .NET
'if-return' statement can be rewritten as 'return' statement
Convert into 'return' statement
Check warning on line 166 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 65 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 157 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 196 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 67 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 184 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 175 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 190 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 63 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 169 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 178 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 187 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported
Check warning on line 66 in ../.editorconfig
github-actions / Qodana for .NET
Unknown property
The property is not supported