Skip to content

CodeQL

CodeQL #288

Triggered via schedule January 25, 2024 04:45
Status Success
Total duration 2m 53s
Artifacts

codeql.yml

on: schedule
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Analyze (csharp)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-dotnet@v3, github/codeql-action/init@v2, github/codeql-action/autobuild@v2, github/codeql-action/analyze@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Analyze (csharp): src/TypealizR/Core/ResxFileSourceGeneratorBase.cs#L102
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
Analyze (csharp): src/TypealizR/CodeFirstSourceGenerator/CodeFirstSourceGenerator.cs#L124
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
Analyze (csharp): src/TypealizR/Core/RessourceFileEntry.cs#L38
Change return type of method 'Sanitize' from 'System.Collections.Generic.IEnumerable<TypealizR.Core.MemberName>' to 'TypealizR.Core.MemberName[]' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
Analyze (csharp): src/TypealizR/Core/MemberName.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
Analyze (csharp): src/TypealizR/Core/GeneratorOptions.cs#L56
Change return type of method 'ReadSeverityConfig' from 'System.Collections.Generic.IDictionary<string, Microsoft.CodeAnalysis.DiagnosticSeverity>' to 'System.Collections.Generic.Dictionary<string, Microsoft.CodeAnalysis.DiagnosticSeverity>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
Analyze (csharp): src/TypealizR.CLI/Commands/CodeFirst/ExportCommand.cs#L80
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
Analyze (csharp): src/TypealizR.CLI/Commands/CodeFirst/ExportCommand.cs#L86
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
Analyze (csharp): src/TypealizR.CLI/Commands/CodeFirst/ExportCommand.cs#L92
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
Analyze (csharp): src/TypealizR.Tests/CLI.Tests/Abstractions/FileStorage.Tests.cs#L21
'File.ReadAllText(string)' synchronously blocks. Await 'File.ReadAllTextAsync(string, CancellationToken)' instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1849)
Analyze (csharp): src/TypealizR/Core/ResxFileSourceGeneratorBase.cs#L102
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)