-
Notifications
You must be signed in to change notification settings - Fork 68
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
rubocop fixing offenses related to rubocop upgrade #3319
Conversation
Please make sure you're starting your new branch from master. This branch looks like it was branched from A quick way to straighten this out:
|
@@ -26,7 +26,7 @@ class Model < Common::RedisStore | |||
private | |||
|
|||
def get_identifier | |||
@id ? @id : @user.uuid | |||
@id || @user.uuid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this new recommendation!
@@ -18,7 +18,7 @@ def bucket | |||
# Obtain the first ObjectVersion for a given key. | |||
def first_version(key) | |||
versions = bucket.object_versions(prefix: key) | |||
versions.sort_by(&:last_modified).first | |||
versions.min_by(&:last_modified) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool. I had no idea about this method.
.rubocop_todo.yml
Outdated
Layout/AlignHash: | ||
Enabled: false | ||
|
||
# Offense count: 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well delete the commented out rules.
ba4d8a8
to
2187110
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Great! Thanks!
Description of change
Fixing Rubocop offenses. Commits broken out by specific Cops.