Skip to content

Disable analyzer when running dotnet format #157

Disable analyzer when running dotnet format

Disable analyzer when running dotnet format #157

Triggered via push November 22, 2024 01:14
Status Success
Total duration 3m 17s
Artifacts

test.yaml

on: push
Matrix: Run tests
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
Run tests (macos-latest): E5Renewer/Controllers/SimpleDummyResultGenerator.cs#L23
Member 'E5Renewer.Controllers.SimpleDummyResultGenerator.GenerateDummyResultAsync(HttpContext)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'E5Renewer.Controllers.IDummyResultGenerator.GenerateDummyResultAsync(HttpContext)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
Run tests (macos-latest): E5Renewer/WebApplicationExtends.cs#L63
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext for native AOT applications.
Run tests (macos-latest): E5Renewer/WebApplicationExtends.cs#L63
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
Run tests (macos-latest): E5Renewer/WebApplicationExtends.cs#L108
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext for native AOT applications.
Run tests (macos-latest): E5Renewer/WebApplicationExtends.cs#L93
Using member 'E5Renewer.WebApplicationExtends.ToDictionary<K, V>(Stream)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Calls System.Text.Json.JsonSerializer.DeserializeAsync<TValue>(Stream, JsonSerializerOptions, CancellationToken).
Run tests (macos-latest): E5Renewer/WebApplicationExtends.cs#L108
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
Run tests (macos-latest): E5Renewer/WebApplicationExtends.cs#L117
Using member 'System.Text.Json.JsonSerializer.DeserializeAsync<TValue>(Stream, JsonSerializerOptions, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
Run tests (macos-latest): E5Renewer/Program.cs#L136
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext for native AOT applications.
Run tests (macos-latest): E5Renewer/Program.cs#L41
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (macos-latest): E5Renewer/Program.cs#L42
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (ubuntu-latest): E5Renewer/Controllers/SimpleDummyResultGenerator.cs#L23
Member 'E5Renewer.Controllers.SimpleDummyResultGenerator.GenerateDummyResultAsync(HttpContext)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'E5Renewer.Controllers.IDummyResultGenerator.GenerateDummyResultAsync(HttpContext)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
Run tests (ubuntu-latest): E5Renewer/IServiceCollectionExtends.cs#L55
Using member 'E5Renewer.AssemblyExtends.IterE5RenewerModules(Assembly)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Calls System.Reflection.Assembly.GetTypes().
Run tests (ubuntu-latest): E5Renewer/WebApplicationExtends.cs#L63
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext for native AOT applications.
Run tests (ubuntu-latest): E5Renewer/WebApplicationExtends.cs#L63
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
Run tests (ubuntu-latest): E5Renewer/IServiceCollectionExtends.cs#L59
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(IServiceCollection, Type, Type)'. The return value of method 'System.Collections.Generic.IEnumerator<T>.Current.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
Run tests (ubuntu-latest): E5Renewer/IServiceCollectionExtends.cs#L63
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(IServiceCollection, Type, Type)'. The return value of method 'System.Collections.Generic.IEnumerator<T>.Current.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
Run tests (ubuntu-latest): E5Renewer/IServiceCollectionExtends.cs#L67
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(IServiceCollection, Type, Type)'. The return value of method 'System.Collections.Generic.IEnumerator<T>.Current.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
Run tests (ubuntu-latest): E5Renewer/IServiceCollectionExtends.cs#L71
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(IServiceCollection, Type, Type)'. The return value of method 'System.Collections.Generic.IEnumerator<T>.Current.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
Run tests (ubuntu-latest): E5Renewer/WebApplicationExtends.cs#L117
Using member 'System.Text.Json.JsonSerializer.DeserializeAsync<TValue>(Stream, JsonSerializerOptions, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
Run tests (ubuntu-latest): E5Renewer/WebApplicationExtends.cs#L108
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext for native AOT applications.
Run tests (windows-latest): E5Renewer/Controllers/SimpleDummyResultGenerator.cs#L23
Member 'E5Renewer.Controllers.SimpleDummyResultGenerator.GenerateDummyResultAsync(HttpContext)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'E5Renewer.Controllers.IDummyResultGenerator.GenerateDummyResultAsync(HttpContext)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
Run tests (windows-latest): E5Renewer/Models/Modules/ModuleLoadContext.cs#L21
Member 'E5Renewer.Models.Modules.ModuleLoadContext.Load(AssemblyName)' with 'RequiresUnreferencedCodeAttribute' overrides base member 'System.Runtime.Loader.AssemblyLoadContext.Load(AssemblyName)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
Run tests (windows-latest): E5Renewer/Program.cs#L136
Using member 'Microsoft.AspNetCore.Http.HttpResponseJsonExtensions.WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext for native AOT applications.
Run tests (windows-latest): E5Renewer/Program.cs#L41
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (windows-latest): E5Renewer/Program.cs#L42
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (windows-latest): E5Renewer/Program.cs#L43
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (windows-latest): E5Renewer/Program.cs#L44
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String, T)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (windows-latest): E5Renewer/Program.cs#L46
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (windows-latest): E5Renewer/Program.cs#L47
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.
Run tests (windows-latest): E5Renewer/Program.cs#L48
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.