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

fixes #17031 - repository info: include mirror on sync #460

Merged
merged 1 commit into from
Oct 20, 2016

Conversation

bbuckingham
Copy link
Member

No description provided.

@@ -75,6 +76,7 @@ class InfoCommand < HammerCLIKatello::InfoCommand
def extend_data(data)
Copy link
Member

Choose a reason for hiding this comment

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

you may want to do a bit of refactoring on this method to reduce cyclomatic complexity for rubocop

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure if we can do too much to reduce this, since it is not a method that we define, but part of the general framework.

I would be tempted to either:

  1. disable the cop on that specific method instance
  2. not use the method

I prefer 1 as I really wanted to keep the behavior consistent with the other fields.

Thoughts?

Copy link
Member

Choose a reason for hiding this comment

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

I would try to separate some of this logic into a method, like setup_sync_state does.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @akofink ! updated.

Copy link
Member

@akofink akofink left a comment

Choose a reason for hiding this comment

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

LGTM ACK Thanks @bbuckingham!

@akofink akofink merged commit d17c45e into Katello:master Oct 20, 2016
johnpmitsch pushed a commit to johnpmitsch/hammer-cli-katello that referenced this pull request Dec 13, 2016
ehelms pushed a commit that referenced this pull request Dec 13, 2016
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