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 rubocop #232

Merged
merged 2 commits into from
Jul 25, 2017
Merged

Fix rubocop #232

merged 2 commits into from
Jul 25, 2017

Conversation

glennsarti
Copy link
Contributor

Bunch of rubocop fixes. Only files left are in the api, but we don't have enough tests in that area to bravely fix them.

This commit fixes the many rubocop offenses.  Also modifies the rubocop
settings:

- Set max method params higher than the default of 5
- Ignore Style/GuardClause. In some cases it's eaiser to read without the guard
- Renamed a cop
Sometimes this test would fail if the computer running the tests was under a
bit of load.  This commit changes the expected output to be up to 1.99 seconds
instead of the previous 0.99 seconds.
@@ -462,7 +460,7 @@ def _check_snapshot_queue

def migration_limit(migration_limit)
# Returns migration_limit setting when enabled
return false if migration_limit == 0 || ! migration_limit
return false if migration_limit == 0 || !migration_limit # rubocop:disable Style/NumericPredicate
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Disable the cop here because migration limit can come in as an Integer OR boolean type

@shrug shrug merged commit d7adb5a into puppetlabs:master Jul 25, 2017
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