Skip to content

CodeQL

CodeQL #109

Triggered via schedule September 9, 2024 13:53
Status Failure
Total duration 1m 16s
Artifacts

codeql.yml

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

Annotations

10 errors and 10 warnings
Analyze (csharp): src/Swan.Core/Gizmos/RangeLookup.cs#L12
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028)
Analyze (csharp): src/Swan.Core/Gizmos/RangeLookup.cs#L12
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028)
Analyze (csharp)
Assets file '/home/runner/work/swan/swan/src/Swan.Samples/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v7.0'. Ensure that restore has run and that you have included 'net70' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/swan/swan/test/Swan.Test/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v7.0'. Ensure that restore has run and that you have included 'net70' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/swan/swan/src/Swan.Threading/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v7.0'. Ensure that restore has run and that you have included 'net70' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/swan/swan/src/Swan.Logging/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v7.0'. Ensure that restore has run and that you have included 'net70' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/swan/swan/src/Swan.Core/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v7.0'. Ensure that restore has run and that you have included 'net70' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/swan/swan/src/Swan.Data/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v7.0'. Ensure that restore has run and that you have included 'net70' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/swan/swan/src/Swan.Data.SqlBulkOps/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v7.0'. Ensure that restore has run and that you have included 'net70' in the TargetFrameworks for your project.
Analyze (csharp)
We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.18.3/x64/codeql/csharp/tools/autobuild.sh". Exit code was 1 and last log line was: Error: Could not auto-detect a suitable build method. See the logs for more details.
Analyze (csharp): src/Swan.Core/Reflection/ReflectionExtensions.cs#L126
Possible multiple enumerations of 'IEnumerable' collection. Consider using an implementation that avoids multiple enumerations. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851)
Analyze (csharp): src/Swan.Core/Reflection/ReflectionExtensions.cs#L129
Possible multiple enumerations of 'IEnumerable' collection. Consider using an implementation that avoids multiple enumerations. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851)
Analyze (csharp): src/Swan.Core/Mapping/ObjectMapper.cs#L82
In method 'Copy', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Analyze (csharp): src/Swan.Core/Gizmos/ValueCache.cs#L8
Type 'ValueCache' owns disposable field(s) '_semaphore' but is not disposable (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1001)
Analyze (csharp): src/Swan.Core/Gizmos/AsyncLazy.cs#L8
Type 'AsyncLazy' owns disposable field(s) 'FactorySemaphore' but is not disposable (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1001)
Analyze (csharp): src/Swan.Core/Mapping/ObjectMapper.cs#L231
In method 'CopyInternal', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Analyze (csharp): src/Swan.Core/Mapping/ObjectMapper.cs#L235
In method 'CopyInternal', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Analyze (csharp): src/Swan.Core/Mapping/ObjectMapper.cs#L242
In method 'CopyInternal', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Analyze (csharp): src/Swan.Core/Mapping/ObjectMapper.cs#L284
In method 'GetSourceMap', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Analyze (csharp): src/Swan.Core/Formatters/CsvMapping.cs#L3
Type 'CsvMapping' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)