feat: use private static
fields to store constant typeParameters
where possible
#330
Annotations
10 warnings
build / build:
InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L21
Missing XML comment for publicly visible type or member 'InterfaceStubGeneratorV2'
|
build / build:
InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L67
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#L620
Missing XML comment for publicly visible type or member 'InterfaceStubGeneratorV2.Initialize(IncrementalGeneratorInitializationContext)'
|
build / build:
InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L151
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#L87
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#L80
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#L182
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#L461
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#L597
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#L613
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
Expired
|
681 KB |
|