Skip to content

Update lib-ci.yml

Update lib-ci.yml #65

Triggered via pull request January 12, 2024 19:21
Status Failure
Total duration 1m 24s
Artifacts

codeql.yml

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

Annotations

10 errors and 11 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.15.5/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)
The "paths"/"paths-ignore" fields of the config only have effect for JavaScript, Python, and Ruby
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#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/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#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/Collections/CollectionDelegates.cs#L6
Type 'CollectionDelegates' 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)