Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sonarqube reliability issues #533

Closed
wants to merge 3 commits into from

Conversation

andrewmorris43
Copy link
Contributor

@andrewmorris43 andrewmorris43 commented Jan 2, 2025

Description

Fixes all 38 remaining medium reliability sonarqube issues.

Most of these issues involve updating to async methods.

As I was working on these affected files, I fixed any other sonarqube errors I also found in them.

Context

https://sonarcloud.io/project/issues?impactSeverities=MEDIUM&impactSoftwareQualities=RELIABILITY&issueStatuses=OPEN%2CCONFIRMED&id=NHSDigital_dtos-cohort-manager

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@@ -77,28 +76,28 @@ public async Task<HttpResponseData> Run([HttpTrigger(AuthorizationLevel.Anonymou
participantEligibleResponse = await markParticipantAsEligible(participantCsvRecord);

_logger.LogInformation("The participant has not been updated but a validation Exception was raised");
responseDataFromCohort = await SendToCohortDistribution(participant, participantCsvRecord.FileName, req);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure we don't need to pass the request into this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not used in the SendToCohortDistribution method for anything.

Copy link

sonarqubecloud bot commented Jan 7, 2025

@andrewmorris43
Copy link
Contributor Author

I accidentally merged these changes into my other sonar qube PR, so these changes are now in here:
#534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants