Skip to content

w

w #4440

GitHub Actions / Qodana for .NET completed Apr 23, 2025 in 0s

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

Dependency Version Licenses
Humanizer.Core 2.14.1 MIT
Json.More.Net 2.1.0 MIT
JsonPointer.Net 5.1.0 MIT
JsonSchema.Net.Generation 5.0.0 MIT
JsonSchema.Net 7.3.1 MIT
LibGit2Sharp.NativeBinaries 2.0.323 MIT
LibGit2Sharp 0.31.0 MIT
Microsoft.Build.Framework 17.13.9 MIT
Microsoft.Build.Utilities.Core 17.13.9 MIT
Microsoft.CodeAnalysis.PublicApiAnalyzers 3.3.4 MIT
Microsoft.Extensions.Configuration.Abstractions 9.0.4 MIT
Microsoft.Extensions.Configuration.Binder 9.0.4 MIT
Microsoft.Extensions.Configuration.CommandLine 9.0.4 MIT
Microsoft.Extensions.Configuration.EnvironmentVariables 9.0.4 MIT
Microsoft.Extensions.Configuration.FileExtensions 9.0.4 MIT
Microsoft.Extensions.Configuration.Json 9.0.4 MIT
Microsoft.Extensions.Configuration.UserSecrets 9.0.4 MIT
Microsoft.Extensions.Configuration 9.0.4 MIT
Microsoft.Extensions.DependencyInjection.Abstractions 9.0.4 MIT
Microsoft.Extensions.DependencyInjection 9.0.4 MIT
Microsoft.Extensions.Diagnostics.Abstractions 9.0.4 MIT
Microsoft.Extensions.Diagnostics 9.0.4 MIT
Microsoft.Extensions.FileProviders.Abstractions 9.0.4 MIT
Microsoft.Extensions.FileProviders.Physical 9.0.4 MIT
Microsoft.Extensions.FileSystemGlobbing 9.0.4 MIT
Microsoft.Extensions.Hosting.Abstractions 9.0.4 MIT
Microsoft.Extensions.Hosting 9.0.4 MIT
Microsoft.Extensions.Logging.Abstractions 9.0.4 MIT
Microsoft.Extensions.Logging.Configuration 9.0.4 MIT
Microsoft.Extensions.Logging.Console 9.0.4 MIT
Microsoft.Extensions.Logging.Debug 9.0.4 MIT
Microsoft.Extensions.Logging.EventLog 9.0.4 MIT
Microsoft.Extensions.Logging.EventSource 9.0.4 MIT
Microsoft.Extensions.Logging 9.0.4 MIT
Microsoft.Extensions.Options.ConfigurationExtensions 9.0.4 MIT
Microsoft.Extensions.Options 9.0.4 MIT
Microsoft.Extensions.Primitives 9.0.4 MIT
Microsoft.NET.StringTools 17.13.9 MIT
Microsoft.Win32.Registry 6.0.0-preview.5.21301.5 MIT
Polly.Core 8.5.2 BSD-3-Clause
Polly 8.5.2 BSD-3-Clause
Roslynator.Analyzers 4.13.1 Apache-2.0
Roslynator.Formatting.Analyzers 4.13.1 Apache-2.0
System.Collections.Immutable 9.0.2 MIT
System.Configuration.ConfigurationManager 8.0.0 MIT
System.Diagnostics.DiagnosticSource 9.0.4 MIT
System.Diagnostics.EventLog 8.0.0 MIT
System.Diagnostics.EventLog 9.0.4 MIT
System.IO.Abstractions 22.0.14 MIT
System.IO.Pipelines 9.0.4 MIT
System.Memory 4.5.5 MIT
System.Runtime.CompilerServices.Unsafe 6.0.0 MIT
System.Security.AccessControl 6.0.0-preview.5.21301.5 MIT
System.Security.Cryptography.ProtectedData 8.0.0 MIT
System.Security.Principal.Windows 6.0.0-preview.5.21301.5 MIT
System.Text.Encoding.CodePages 7.0.0 MIT
System.Text.Encodings.Web 9.0.4 MIT
System.Text.Json 9.0.4 MIT
TestableIO.System.IO.Abstractions.Wrappers 22.0.14 MIT
TestableIO.System.IO.Abstractions 22.0.14 MIT
Testably.Abstractions.FileSystem.Interface 9.0.0 MIT
YamlDotNet 16.3.0 MIT
Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check notice on line 17 in GitVersion.Core/SemVer/SemanticVersionPreReleaseTag.cs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 65 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 157 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 196 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 67 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 184 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 175 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 190 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 63 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 169 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 178 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 187 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported

Check warning on line 66 in ../.editorconfig

See this annotation in the file changed.

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

Unknown property

The property is not supported