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

chore: Fix RuboCop Style/FormatStringToken #914

Merged

Conversation

htwroclau
Copy link
Contributor

See #854 - this PR fixes Style/FormatStringToken

@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-03-03 10:30:09 +0100 using RuboCop version 0.65.0.
# on 2019-03-03 19:25:18 +0900 using RuboCop version 0.65.0.
Copy link
Member

Choose a reason for hiding this comment

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

Ah, one of the new tricks is to revert JUST this.

Suggested change
# on 2019-03-03 19:25:18 +0900 using RuboCop version 0.65.0.
# on 2019-03-03 10:30:09 +0100 using RuboCop version 0.65.0.

Copy link
Member

Choose a reason for hiding this comment

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

See the #854 under Workflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your advise!

Does that mean that the time(19:25:18 +0900) has reverted?

Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Hey, awesome! We're getting closer!

I made some small work notes inline.

@@ -99,7 +99,8 @@ def self.decode(query)
if !last_subkey || is_array
value_type = is_array ? Array : Hash
if context[subkey] && !context[subkey].is_a?(value_type)
raise TypeError, format("expected %s (got %s) for param `%s'", value_type.name, context[subkey].class.name, subkey)
raise TypeError, format("expected %<value_type_name>s (got %<class_name>s) for param `%<subkey>s'",
value_type_name: value_type.name, class_name: context[subkey].class.name, subkey: subkey)
Copy link
Member

Choose a reason for hiding this comment

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

If this would go on more lines, each key-value pair in the hash on its own line, we could avoid adding new Metrics/LineLength issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comments!
I try do it.

@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-03-03 10:30:09 +0100 using RuboCop version 0.65.0.
# on 2019-03-03 19:25:18 +0900 using RuboCop version 0.65.0.
Copy link
Member

Choose a reason for hiding this comment

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

See the #854 under Workflow.

@htwroclau htwroclau force-pushed the rubocop-Style-FormatStringToken branch from f673ac5 to 1058f1c Compare March 3, 2019 11:18
@olleolleolle olleolleolle merged commit 801f7d5 into lostisland:master Mar 3, 2019
@olleolleolle olleolleolle mentioned this pull request Mar 3, 2019
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.

None yet

2 participants