fix: tests #4
Annotations
1 error and 10 warnings
|
src/Sstv.Outbox/IKafkaOutboxItem.cs#L11
Change 'Headers' to be read-only by removing the property setter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227)
|
src/Sstv.Outbox/IKafkaOutboxItem.cs#L21
Properties should not return arrays (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1819)
|
src/Sstv.Outbox/IKafkaOutboxItem.cs#L16
Properties should not return arrays (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1819)
|
tests/Sstv.Outbox.Sample/ApplicationDbContext.cs#L116
In member Task<OutboxItemHandleResult> EfOutboxItemHandler.HandleAsync(EfOutboxItem item, OutboxOptions options, CancellationToken ct = default(CancellationToken)), change parameter name item to outboxItem in order to match the identifier as it has been declared in Task<OutboxItemHandleResult> IOutboxItemHandler<EfOutboxItem>.HandleAsync(EfOutboxItem outboxItem, OutboxOptions options, CancellationToken ct = default(CancellationToken)) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1725)
|
tests/Sstv.Outbox.Sample/StrictOutboxItem.cs#L47
In member Task<OutboxItemHandleResult> StrictOutboxItemHandler.HandleAsync(StrictOutboxItem item, OutboxOptions options, CancellationToken ct = default(CancellationToken)), change parameter name item to outboxItem in order to match the identifier as it has been declared in Task<OutboxItemHandleResult> IOutboxItemHandler<StrictOutboxItem>.HandleAsync(StrictOutboxItem outboxItem, OutboxOptions options, CancellationToken ct = default(CancellationToken)) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1725)
|
tests/Sstv.Outbox.Sample/Migrations/20240717190405_Initial.cs#L160
In externally visible method 'void Initial.Down(MigrationBuilder migrationBuilder)', validate parameter 'migrationBuilder' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
tests/Sstv.Outbox.Sample/OneMoreOutboxItem.cs#L56
In member Task<OutboxItemHandleResult> OneMoreOutboxItemHandler.HandleAsync(OneMoreOutboxItem item, OutboxOptions options, CancellationToken ct), change parameter name item to outboxItem in order to match the identifier as it has been declared in Task<OutboxItemHandleResult> IOutboxItemHandler<OneMoreOutboxItem>.HandleAsync(OneMoreOutboxItem outboxItem, OutboxOptions options, CancellationToken ct = default(CancellationToken)) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1725)
|
tests/Sstv.Outbox.Sample/Migrations/20240717190405_Initial.cs#L149
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
tests/Sstv.Outbox.Sample/Migrations/20240717190405_Initial.cs#L154
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
tests/Sstv.Outbox.IntegrationTests/EntityFrameworkOutboxWorkerTests.cs#L157
Exception type System.Exception is not sufficiently specific (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2201)
|
This job failed
Loading