Update Roslyn (Microsoft.CodeAnalysis) to v5 #2249
ci-build.yml
on: pull_request
Matrix: build / build-unix
build
/
build-windows
3m 15s
build
/
collect-coverage
Annotations
3 errors, 30 warnings, and 1 notice
|
build / build-unix (ubuntu-latest)
Process completed with exit code 1.
|
|
build / build-windows
Process completed with exit code 1.
|
|
build / build-unix (macos-latest)
Process completed with exit code 1.
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L161
Type 'SyntaxReceiver' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L23
Unused field 'TypeParameterVariableName' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1823)
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/Emitter.cs#L335
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Refit.Generator.Emitter.WriteMethodOpening(Refit.Generator.SourceWriter, Refit.Generator.MethodModel, bool, bool, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/Emitter.cs#L355
Use 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' when the input is a constant unit string (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834)
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/Parser.cs#L46
Prefer the generic overload 'Refit.Generator.WellKnownTypes.Get<T>()' instead of 'Refit.Generator.WellKnownTypes.Get(System.Type)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/Emitter.cs#L202
Method WriteRefitMethod passes 'ReturnTypeMetadata' as the paramName argument to a ArgumentOutOfRangeException constructor. Replace this argument with one of the method's parameter names. Note that the provided parameter name should have the exact casing as declared on the method. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2208)
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/Polyfills/IndexRange.cs#L58
Provide a method named 'ToIndex' or 'FromInt32' as an alternate for operator op_Implicit (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2225)
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L20
'Refit.Generator.InterfaceStubGenerator': A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>'
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/UniqueNameBuilder.cs#L6
Missing XML comment for publicly visible type or member 'UniqueNameBuilder.UniqueNameBuilder()'
|
|
build / build-unix (ubuntu-latest):
src/InterfaceStubGenerator.Shared/UniqueNameBuilder.cs#L6
Missing XML comment for publicly visible type or member 'UniqueNameBuilder'
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L161
Type 'SyntaxReceiver' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L23
Unused field 'TypeParameterVariableName' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1823)
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/Parser.cs#L46
Prefer the generic overload 'Refit.Generator.WellKnownTypes.Get<T>()' instead of 'Refit.Generator.WellKnownTypes.Get(System.Type)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/Emitter.cs#L335
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Refit.Generator.Emitter.WriteMethodOpening(Refit.Generator.SourceWriter, Refit.Generator.MethodModel, bool, bool, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/Emitter.cs#L355
Use 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' when the input is a constant unit string (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834)
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/Emitter.cs#L202
Method WriteRefitMethod passes 'ReturnTypeMetadata' as the paramName argument to a ArgumentOutOfRangeException constructor. Replace this argument with one of the method's parameter names. Note that the provided parameter name should have the exact casing as declared on the method. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2208)
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L20
'Refit.Generator.InterfaceStubGenerator': A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>'
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/Polyfills/IndexRange.cs#L58
Provide a method named 'ToIndex' or 'FromInt32' as an alternate for operator op_Implicit (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2225)
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/UniqueNameBuilder.cs#L6
Missing XML comment for publicly visible type or member 'UniqueNameBuilder.UniqueNameBuilder()'
|
|
build / build-windows:
src/InterfaceStubGenerator.Shared/UniqueNameBuilder.cs#L6
Missing XML comment for publicly visible type or member 'UniqueNameBuilder'
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L161
Type 'SyntaxReceiver' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/Parser.cs#L46
Prefer the generic overload 'Refit.Generator.WellKnownTypes.Get<T>()' instead of 'Refit.Generator.WellKnownTypes.Get(System.Type)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263)
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L23
Unused field 'TypeParameterVariableName' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1823)
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/Emitter.cs#L335
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Refit.Generator.Emitter.WriteMethodOpening(Refit.Generator.SourceWriter, Refit.Generator.MethodModel, bool, bool, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/Emitter.cs#L355
Use 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' when the input is a constant unit string (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834)
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/Emitter.cs#L202
Method WriteRefitMethod passes 'ReturnTypeMetadata' as the paramName argument to a ArgumentOutOfRangeException constructor. Replace this argument with one of the method's parameter names. Note that the provided parameter name should have the exact casing as declared on the method. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2208)
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/Polyfills/IndexRange.cs#L58
Provide a method named 'ToIndex' or 'FromInt32' as an alternate for operator op_Implicit (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2225)
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L20
'Refit.Generator.InterfaceStubGenerator': A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>'
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/UniqueNameBuilder.cs#L6
Missing XML comment for publicly visible type or member 'UniqueNameBuilder.UniqueNameBuilder()'
|
|
build / build-unix (macos-latest):
src/InterfaceStubGenerator.Shared/UniqueNameBuilder.cs#L6
Missing XML comment for publicly visible type or member 'UniqueNameBuilder'
|
|
build / build-windows
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|