perf: replace Activator.CreateInstance with direct constructor in ApiResponse.Create #2071
+4
−12
Annotations
11 warnings
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: dotnet/nbgv@v0.5.1, glennawatson/coverlet-msbuild@v2.1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
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:
Refit/Polyfills.Trimming.cs#L16
Add a public read-only property accessor for positional argument memberSignature of Attribute DynamicDependencyAttribute (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1019)
|
|
Build:
Refit/Polyfills.Trimming.cs#L15
Add a public read-only property accessor for positional argument type of Attribute DynamicDependencyAttribute (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1019)
|
|
Build:
Refit/Polyfills.Trimming.cs#L15
Add a public read-only property accessor for positional argument memberTypes of Attribute DynamicDependencyAttribute (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1019)
|
|
Build:
Refit/ApiExceptionBase.cs#L31
Field RefitSettings is a member of type ApiExceptionBase which is serializable but is of type Refit.RefitSettings which is not serializable (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2235)
|
|
Build:
Refit/ApiExceptionBase.cs#L10
Rename Refit.ApiExceptionBase to end in 'Exception' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1710)
|
|
Build:
Refit/DynamicallyAccessedMembersAttribute.cs#L26
Specify AttributeUsage on DynamicallyAccessedMembersAttribute (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1018)
|
|
Build:
Refit/ApiResponse.cs#L243
Possible null reference argument for parameter 'response' in 'Task<ApiException> ApiException.Create(HttpRequestMessage message, HttpMethod httpMethod, HttpResponseMessage response, RefitSettings refitSettings, Exception? innerException = null)'.
|
|
Build:
Refit/ApiResponse.cs#L221
Possible null reference assignment.
|
|
Build:
Refit/ApiResponse.cs#L205
Possible null reference assignment.
|
Loading