You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I had to take such a decision in the past, it was for trailing or leading dots for multiline method calls.
Layout/DotPosition:
Description: 'Checks the position of the dot in multi-line method calls.'
StyleGuide: '#consistent-multi-line-chains'
EnforcedStyle: trailing
it was a large code base, and so I tried to do the auto-correct with both settings and chose the one with the least changes. so to keep the code base as consistent as possible.
if its half and half, I'd be tempted only to enforce on new files toward the preference the team has.
So I would be tempted to vote for the last one .. and make as little change as needed.
about rubocop_challenger, it would eventually select that rule and propose to make an auto change, ruby19 is the default. but if we want to have another setting, we need an intervention.
Motivation
Across the Apipie code base there different ways of using hashes. For consistency reasons. I think we could standardize that.
Proposal
Although that's a personal preference I think we could use the Ruby 1.9 style of Hash syntax and have Symbol keys use
:
as well as String keys use=>
https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/HashSyntax
Example
Implementation
In
.rubocop.yml
we can enable theStyle/HashSyntax
rule and run the autocorrector(Can Rubocop challenger do that ?)Any thoughts ?
The text was updated successfully, but these errors were encountered: