Skip to content

Replace calls to .Any() with .Count is not 0. #91

Replace calls to .Any() with .Count is not 0.

Replace calls to .Any() with .Count is not 0. #91

Triggered via pull request February 23, 2024 17:18
Status Failure
Total duration 40s
Artifacts

codacy-analysis.yml

on: pull_request
Codacy Security Scan
30s
Codacy Security Scan
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 12 warnings
Codacy Security Scan: tests/CSharpIncrementalGeneratorTest.cs#L7
'CSharpIncrementalGeneratorTest<TSourceGenerator, TVerifier>.GetSourceGenerators()': return type must be 'IEnumerable<Type>' to match overridden member 'SourceGeneratorTest<TVerifier>.GetSourceGenerators()'
Codacy Security Scan: tests/CSharpIncrementalGeneratorTest.cs#L15
'CSharpIncrementalGeneratorTest<TSourceGenerator, TVerifier>.CreateGeneratorDriver(Project, ImmutableArray<ISourceGenerator>)': no suitable method found to override
Codacy Security Scan: tests/VisualBasicIncrementalGeneratorTest.cs#L7
'VisualBasicIncrementalGeneratorTest<TSourceGenerator, TVerifier>.GetSourceGenerators()': return type must be 'IEnumerable<Type>' to match overridden member 'SourceGeneratorTest<TVerifier>.GetSourceGenerators()'
Codacy Security Scan: tests/VisualBasicIncrementalGeneratorTest.cs#L15
'VisualBasicIncrementalGeneratorTest<TSourceGenerator, TVerifier>.CreateGeneratorDriver(Project, ImmutableArray<ISourceGenerator>)': no suitable method found to override
Codacy Security Scan: tests/CSharpIncrementalGeneratorTest.cs#L7
'CSharpIncrementalGeneratorTest<TSourceGenerator, TVerifier>.GetSourceGenerators()': return type must be 'IEnumerable<Type>' to match overridden member 'SourceGeneratorTest<TVerifier>.GetSourceGenerators()'
Codacy Security Scan: tests/CSharpIncrementalGeneratorTest.cs#L15
'CSharpIncrementalGeneratorTest<TSourceGenerator, TVerifier>.CreateGeneratorDriver(Project, ImmutableArray<ISourceGenerator>)': no suitable method found to override
Codacy Security Scan: tests/VisualBasicIncrementalGeneratorTest.cs#L7
'VisualBasicIncrementalGeneratorTest<TSourceGenerator, TVerifier>.GetSourceGenerators()': return type must be 'IEnumerable<Type>' to match overridden member 'SourceGeneratorTest<TVerifier>.GetSourceGenerators()'
Codacy Security Scan: tests/VisualBasicIncrementalGeneratorTest.cs#L15
'VisualBasicIncrementalGeneratorTest<TSourceGenerator, TVerifier>.CreateGeneratorDriver(Project, ImmutableArray<ISourceGenerator>)': no suitable method found to override
Codacy Security Scan
😭 build failed
Codacy Security Scan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: Elskom/build-dotnet@main. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Codacy Security Scan: src/IDisposableGenerator/ClassItems.cs#L1
Convert to block scoped namespace (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0160)
Codacy Security Scan: src/IDisposableGenerator/DisposableCodeWriter.cs#L1
Convert to block scoped namespace (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0160)
Codacy Security Scan: src/IDisposableGenerator/SemanticHelper.cs#L1
Convert to block scoped namespace (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0160)
Codacy Security Scan: src/IDisposableGenerator/WorkItem.cs#L1
Convert to block scoped namespace (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0160)
Codacy Security Scan: src/IDisposableGenerator/WorkItemCollection.cs#L1
Convert to block scoped namespace (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0160)
Codacy Security Scan: src/IDisposableGenerator/DisposableCodeWriter.cs#L13
Use explicit type instead of 'var' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008)
Codacy Security Scan: src/IDisposableGenerator/DisposableCodeWriter.cs#L18
Use explicit type instead of 'var' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008)
Codacy Security Scan: src/IDisposableGenerator/DisposableCodeWriter.cs#L54
Use explicit type instead of 'var' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008)
Codacy Security Scan: src/IDisposableGenerator/DisposableCodeWriter.cs#L65
Use explicit type instead of 'var' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008)
Codacy Security Scan: src/IDisposableGenerator/DisposableCodeWriter.cs#L79
Use explicit type instead of 'var' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008)
Codacy Security Scan
Unexpected input(s) 'include-prerelease', valid inputs are ['dotnet-version', 'dotnet-quality', 'global-json-file', 'source-url', 'owner', 'config-file', 'cache', 'cache-dependency-path']