Skip to content

Ensure two interfaces with the same name do not cause compile errors #566

Ensure two interfaces with the same name do not cause compile errors

Ensure two interfaces with the same name do not cause compile errors #566

Triggered via pull request May 9, 2024 01:08
Status Success
Total duration 6m 12s
Artifacts 1

ci-build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
build / build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: glennawatson/coverlet-msbuild@v2.1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L21
Missing XML comment for publicly visible type or member 'InterfaceStubGeneratorV2'
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L74
Missing XML comment for publicly visible type or member 'InterfaceStubGeneratorV2.GenerateInterfaceStubs<TContext>(TContext, Action<TContext, Diagnostic>, Action<TContext, string, SourceText>, CSharpCompilation, string?, ImmutableArray<MethodDeclarationSyntax>, ImmutableArray<InterfaceDeclarationSyntax>)'
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L767
Missing XML comment for publicly visible type or member 'InterfaceStubGeneratorV2.Initialize(IncrementalGeneratorInitializationContext)'
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L173
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L100
In externally visible method 'void InterfaceStubGeneratorV2.GenerateInterfaceStubs<TContext>(TContext context, Action<TContext, Diagnostic> reportDiagnostic, Action<TContext, string, SourceText> addSource, CSharpCompilation compilation, string? refitInternalNamespace, ImmutableArray<MethodDeclarationSyntax> candidateMethods, ImmutableArray<InterfaceDeclarationSyntax> candidateInterfaces)', validate parameter 'reportDiagnostic' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L89
In externally visible method 'void InterfaceStubGeneratorV2.GenerateInterfaceStubs<TContext>(TContext context, Action<TContext, Diagnostic> reportDiagnostic, Action<TContext, string, SourceText> addSource, CSharpCompilation compilation, string? refitInternalNamespace, ImmutableArray<MethodDeclarationSyntax> candidateMethods, ImmutableArray<InterfaceDeclarationSyntax> candidateInterfaces)', validate parameter 'compilation' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L206
In externally visible method 'void InterfaceStubGeneratorV2.GenerateInterfaceStubs<TContext>(TContext context, Action<TContext, Diagnostic> reportDiagnostic, Action<TContext, string, SourceText> addSource, CSharpCompilation compilation, string? refitInternalNamespace, ImmutableArray<MethodDeclarationSyntax> candidateMethods, ImmutableArray<InterfaceDeclarationSyntax> candidateInterfaces)', validate parameter 'addSource' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L555
Member 'WriteConstraitsForTypeParameter' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822)
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L741
Member 'WriteMethodClosing' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822)
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L757
Member 'IsRefitMethod' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822)

Artifacts

Produced during runtime
Name Size
nuget
671 KB