Add Db healthcheck #128
Annotations
10 warnings
src/PackageRegistryService/Authentication/APIKeyEndpointFilter.cs#L13
Nullability of reference types in return type of 'ValueTask<object> APIKeyEndpointFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next)' doesn't match implicitly implemented member 'ValueTask<object?> IEndpointFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next)'.
|
src/PackageRegistryService/Program.cs#L57
Possible null reference argument for parameter 'connectionString' in 'IHealthChecksBuilder NpgSqlHealthCheckBuilderExtensions.AddNpgSql(IHealthChecksBuilder builder, string connectionString, string healthQuery = "SELECT 1;", Action<NpgsqlConnection>? configure = null, string? name = null, HealthStatus? failureStatus = null, IEnumerable<string>? tags = null, TimeSpan? timeout = null)'.
|
src/PackageRegistryService/Authentication/APIKeyEndpointFilter.cs#L25
Dereference of a possibly null reference.
|
src/PackageRegistryService/Authentication/APIKeyEndpointFilter.cs#L30
Possible null reference return.
|
src/PackageRegistryService/Pages/Handlers/PackagesHandlers.cs#L47
Dereference of a possibly null reference.
|
src/PackageRegistryService/Data/DataInitializer.cs#L33
Dereference of a possibly null reference.
|
src/PackageRegistryService/Data/DataInitializer.cs#L33
Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.
|
src/PackageRegistryService/Data/DataInitializer.cs#L67
Dereference of a possibly null reference.
|
src/PackageRegistryService/Data/DataInitializer.cs#L67
Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.
|
src/PackageRegistryService/Pages/Handlers/AboutHandlers.cs#L9
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
This job succeeded
Loading