-
Notifications
You must be signed in to change notification settings - Fork 115
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
Update rubocop and re-lint files #473
Conversation
@@ -53,7 +53,7 @@ def build(namespace:, context:, definition:, logger:, statsd_tags:, crd: nil) | |||
|
|||
def class_for_kind(kind) | |||
if KubernetesDeploy.const_defined?(kind) | |||
KubernetesDeploy.const_get(kind) # rubocop:disable Sorbet/ConstantsFromStrings |
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.
Rubocop locally complains that disabling this cop has no effect, but then Policial fails without it. I added a general exclusion to the main rubocop config instead. We're not using Sorbet.
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.
1 question, since its all auto-generated fixes I'm not reviewing style
@@ -399,7 +399,7 @@ def dummy_events(start_time) | |||
count: 3, | |||
last_seen: start_time + 3.seconds, | |||
reason: "FailedSync", | |||
message: <<~STRING | |||
message: <<~STRING, |
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.
Is this really where the ,
goes?
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.
Yep--it's like when you chain a method on a heredoc, this is where it goes (<<~STRING.strip
for example). I agree this comma looks stupid though. 😞
What are you trying to accomplish with this PR?
Update our rubocop compliance. I noticed that it was correcting untouched code when I ran it on my last PR.
How is this accomplished?
gem install rubocop
, delete the styleguide cache,rubocop -a
and then fix what couldn't be auto-corrected.What could go wrong?
Committing unintentional changes, because I actually did this on my other branch and pulled it over from there.
@Shopify/cloudx