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

Refactoring runComment in mod.go #194

Merged
merged 9 commits into from
Oct 25, 2022
Merged

Refactoring runComment in mod.go #194

merged 9 commits into from
Oct 25, 2022

Conversation

mamine2207
Copy link
Contributor

Reduced its cognitive complexity of 41 and added documentation

@mamine2207 mamine2207 requested a review from a team as a code owner October 18, 2022 14:24
@mamine2207 mamine2207 self-assigned this Oct 18, 2022
@coveralls
Copy link

coveralls commented Oct 18, 2022

Pull Request Test Coverage Report for Build 3314275046

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 23 of 23 (100.0%) changed or added relevant lines in 1 file are covered.
  • 16 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 63.74%

Files with Coverage Reduction New Missed Lines %
services/shuffle/neff/handler.go 16 78.7%
Totals Coverage Status
Change from base Build 3313516765: -0.2%
Covered Lines: 3180
Relevant Lines: 4989

💛 - Coveralls

Copy link
Contributor

@nkcr nkcr left a comment

Choose a reason for hiding this comment

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

Thanks! Got some small minor comments.

}
}

// It loops over all the files in the package, and for each file it loops
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// It loops over all the files in the package, and for each file it loops
// runComment loops over all the files in the package, and for each file it loops

Comment on lines 70 to 72
// - `//go:generate`
// - `// http://`
// - `// https://`
Copy link
Contributor

Choose a reason for hiding this comment

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

I would treat that as code comment (i.e. just indent the line)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mamine2207 mamine2207 requested a review from nkcr October 24, 2022 16:59
@nkcr nkcr merged commit 4bcefbe into main Oct 25, 2022
@nkcr nkcr deleted the amine branch October 25, 2022 10:19
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.

3 participants