Skip to content

Commit

Permalink
sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
tnickelsen committed Dec 20, 2024
1 parent 10c801d commit 3aeb79c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public async Task Consume(ConsumeContext<VerifySliceCommand> context)
var receivedSlice = context.Message;

// Get Granular Certificate Projection from registry
_logger.LogInformation("Getting certificate {receivedSlice.Registry}, {receivedSlice.CertificateId} from registry", receivedSlice.Registry, receivedSlice.CertificateId);
_logger.LogInformation("Getting certificate {registry}, {certificateId} from registry", receivedSlice.Registry, receivedSlice.CertificateId);

Check warning on line 49 in src/ProjectOrigin.Vault/CommandHandlers/VerifySliceCommandHandler.cs

View workflow job for this annotation

GitHub Actions / analyse / sonar-analysis

Use PascalCase for named placeholders. (https://rules.sonarsource.com/csharp/RSPEC-6678)
var getCertificateResult = await _registryService.GetGranularCertificate(receivedSlice.Registry, receivedSlice.CertificateId);

_logger.LogInformation("Got certificate {receivedSlice.Registry}, {receivedSlice.CertificateId} from registry", receivedSlice.Registry, receivedSlice.CertificateId);
_logger.LogInformation("Got certificate {registry}, {certificateId} from registry", receivedSlice.Registry, receivedSlice.CertificateId);

Check warning on line 52 in src/ProjectOrigin.Vault/CommandHandlers/VerifySliceCommandHandler.cs

View workflow job for this annotation

GitHub Actions / analyse / sonar-analysis

Use PascalCase for named placeholders. (https://rules.sonarsource.com/csharp/RSPEC-6678)
switch (getCertificateResult)
{
case GetCertificateResult.Success:
Expand Down Expand Up @@ -153,6 +153,6 @@ private async Task InsertIntoWallet(VerifySliceCommand receivedSlice, GranularCe

_unitOfWork.Commit();

_logger.LogInformation("Slice on certificate {certificateId} inserted into wallet.", slice.CertificateId);
_logger.LogInformation("Slice on certificate with id {certificateId} inserted into wallet.", slice.CertificateId);

Check warning on line 156 in src/ProjectOrigin.Vault/CommandHandlers/VerifySliceCommandHandler.cs

View workflow job for this annotation

GitHub Actions / analyse / sonar-analysis

Use PascalCase for named placeholders. (https://rules.sonarsource.com/csharp/RSPEC-6678)
}
}

0 comments on commit 3aeb79c

Please sign in to comment.