Skip to content

Housekeeping fix some of the code analyser warnings (#1869) #1145

Housekeeping fix some of the code analyser warnings (#1869)

Housekeeping fix some of the code analyser warnings (#1869) #1145

Triggered via push October 6, 2024 21:34
Status Success
Total duration 5m 48s
Artifacts 1

ci-build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
build / build
The following actions use a deprecated Node.js version and will be forced to run on node20: glennawatson/coverlet-msbuild@v2.1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build / build
Codecov: Failed to properly create commit: The process 'D:\a\_actions\codecov\codecov-action\v4\dist\codecov.exe' failed with exit code 1
build / build: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs#L70
Member 'GenerateInterfaceStubs' 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#L864
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: Refit/SystemTextJsonContentSerializer.cs#L98
XML comment on 'ObjectToInferredTypesConverter.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)' has a typeparamref tag for 'T', but there is no type parameter by that name
build / build: Refit/MultipartItem.cs#L12
Abstract type 'MultipartItem' should not have public constructors (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1012)
build / build: Refit/MultipartItem.cs#L133
Properties should not return arrays (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1819)
build / build: Refit/ProblemDetails.cs#L13
Change 'Errors' to be read-only by removing the property setter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227)
build / build: Refit/ProblemDetails.cs#L20
Change 'Extensions' to be read-only by removing the property setter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227)
build / build: Refit/RefitSettings.cs#L136
Change 'HttpRequestMessageOptions' to be read-only by removing the property setter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227)
build / build: Refit/RestMethodParameterInfo.cs#L62
Change 'ParameterProperties' to be read-only by removing the property setter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227)
build / build: Refit/RestMethodParameterInfo.cs#L62
Change 'List<RestMethodParameterProperty>' in 'RestMethodParameterInfo.ParameterProperties' to use 'Collection<T>', 'ReadOnlyCollection<T>' or 'KeyedCollection<K,V>' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1002)

Artifacts

Produced during runtime
Name Size
nuget
628 KB