Skip to content

perf(CA1860): prefer comparing count to 0 vs using Any() (#121) #275

perf(CA1860): prefer comparing count to 0 vs using Any() (#121)

perf(CA1860): prefer comparing count to 0 vs using Any() (#121) #275

Triggered via push December 15, 2024 10:35
Status Success
Total duration 4m 32s
Artifacts
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/Correlate.Abstractions/OnException.cs#L13
Rename type name OnException so that it does not end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
Analyze (csharp): src/Correlate.Abstractions/OnException.cs#L7
Rename type name OnException so that it does not end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
Analyze (csharp): src/Correlate.Abstractions/IActivity.cs#L18
Rename virtual/interface member IActivity.Stop() so that it no longer conflicts with the reserved language keyword 'Stop'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
Analyze (csharp): src/Correlate.Abstractions/OnException.cs#L7
Rename type name OnException so that it does not end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
Analyze (csharp): src/Correlate.Abstractions/OnException.cs#L13
Rename type name OnException so that it does not end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
Analyze (csharp): src/Correlate.Abstractions/IActivity.cs#L18
Rename virtual/interface member IActivity.Stop() so that it no longer conflicts with the reserved language keyword 'Stop'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
Analyze (csharp): src/Correlate.Abstractions/OnException.cs#L7
Rename type name OnException so that it does not end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
Analyze (csharp): src/Correlate.Abstractions/OnException.cs#L13
Rename type name OnException so that it does not end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
Analyze (csharp): src/Correlate.Abstractions/IActivity.cs#L18
Rename virtual/interface member IActivity.Stop() so that it no longer conflicts with the reserved language keyword 'Stop'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
Analyze (csharp): src/Correlate.Abstractions/OnException.cs#L7
Rename type name OnException so that it does not end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)