Skip to content

change Span<float> to ReadOnlySpan<float> to enforce immutability #417

change Span<float> to ReadOnlySpan<float> to enforce immutability

change Span<float> to ReadOnlySpan<float> to enforce immutability #417

Triggered via push January 5, 2025 04:27
Status Success
Total duration 4m 57s
Artifacts

codeql.yml

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

Annotations

12 warnings
Analyze (csharp)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (csharp)
CodeQL Action v2 will be deprecated on December 5th, 2024. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/
Analyze (csharp): src/DotRecast.Core/RcThrowHelper.cs#L49
The variable 'f1' is assigned but its value is never used
Analyze (csharp): src/DotRecast.Core/RcThrowHelper.cs#L49
The variable 'f1' is assigned but its value is never used
Analyze (csharp): src/DotRecast.Core/RcThrowHelper.cs#L49
The variable 'f1' is assigned but its value is never used
Analyze (csharp): test/DotRecast.Core.Test/RcRentedArrayTest.cs#L30
The variable 'rentedArray' is declared but never used
Analyze (csharp): src/DotRecast.Detour/DtNavMeshQuery.cs#L1614
Comparing a span to 'null' might be redundant, the 'null' literal will be implicitly converted to a 'Span<T>.Empty' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2265)
Analyze (csharp): src/DotRecast.Detour/DtNavMeshQuery.cs#L3163
Comparing a span to 'null' might be redundant, the 'null' literal will be implicitly converted to a 'Span<T>.Empty' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2265)
Analyze (csharp): src/DotRecast.Detour/DtNavMeshQuery.cs#L3218
Comparing a span to 'null' might be redundant, the 'null' literal will be implicitly converted to a 'Span<T>.Empty' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2265)
Analyze (csharp): src/DotRecast.Detour/DtNavMeshQuery.cs#L3255
Comparing a span to 'null' might be redundant, the 'null' literal will be implicitly converted to a 'Span<T>.Empty' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2265)
Analyze (csharp): src/DotRecast.Detour/DtNavMeshQuery.cs#L3283
Comparing a span to 'null' might be redundant, the 'null' literal will be implicitly converted to a 'Span<T>.Empty' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2265)
Analyze (csharp): src/DotRecast.Recast/RcLayers.cs#L173
Unreachable code detected