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 Style/HashConversion by rubocop. #66

Merged

Conversation

M-Yamashita01
Copy link
Contributor

The following code was pointed out by Rubocop.

spec/pronto/rubocop/offense_line_spec.rb:56:13: C: [Correctable] Style/HashConversion: Prefer ary.to_h to Hash[ary].
            Hash[::RuboCop::Cop::Severity::NAMES.map { |name| [name, 'fatal'] }] 
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Therefore, we fixed the code.
Could you please approve this PR?

@M-Yamashita01 M-Yamashita01 requested a review from a team as a code owner February 21, 2021 01:50
@ashkulz ashkulz merged commit 67d9cbf into prontolabs:master Feb 21, 2021
@ashkulz
Copy link
Member

ashkulz commented Feb 21, 2021

Thanks!

@M-Yamashita01 M-Yamashita01 deleted the fix-style-hash-conversion-by-rubocop branch February 22, 2021 00:28
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