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

Address some go9p issues adressed by SonarCloud #5550

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

afbjorklund
Copy link
Collaborator

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 6, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afbjorklund

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 6, 2019
Comment on lines +221 to 224
return //NOSONAR

szerror:
return nil, &Error{"invalid size", EINVAL}, 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of using NOSONAR, could you please refactor the code so that it returns the error inside the szerror label and remove the usage of Goto completely? I think that would be much better.

Copy link
Collaborator Author

@afbjorklund afbjorklund Oct 6, 2019

Choose a reason for hiding this comment

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

The check is buggy, since the use of goto makes it entirely possible to have two exit points. i.e. it isn't dead code if someone is actually using it

@codecov-io
Copy link

Codecov Report

Merging #5550 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5550   +/-   ##
=======================================
  Coverage   36.63%   36.63%           
=======================================
  Files         102      102           
  Lines        7346     7346           
=======================================
  Hits         2691     2691           
  Misses       4298     4298           
  Partials      357      357

@medyagh
Copy link
Member

medyagh commented Oct 9, 2019

/retest this please

@medyagh
Copy link
Member

medyagh commented Oct 14, 2019

/retest this please

@tstromberg
Copy link
Contributor

@minikube-bot OK to test

@afbjorklund
Copy link
Collaborator Author

This was for #5577

@tstromberg tstromberg merged commit 22c49c8 into kubernetes:master Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants