-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Cleanup/rubocop] 6 #217
[Cleanup/rubocop] 6 #217
Conversation
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 left some nitpicks regarding possibly unnecessary .to_s
usages. Curious to hear whether there's a good case to keep them and learn more about Ruby in the process.
Nothing worth blocking the PR, though.
lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_merge_translators_strings.rb
Outdated
Show resolved
Hide resolved
lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_merge_translators_strings.rb
Outdated
Show resolved
Hide resolved
lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_download_action.rb
Outdated
Show resolved
Hide resolved
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_merge_translators_strings.rb
Outdated
Show resolved
Hide resolved
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_merge_translators_strings.rb
Outdated
Show resolved
Hide resolved
Style/AsciiComments: | ||
Enabled: false |
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'm happy with this but I'm curious about the rationale?
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.
Generally, I'd like to have a rationale for every disabled rule or any other variation from the default.
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.
My rationale is:
- We already use some Unicode characters in existing comments, like em dash — which I'm a big fan of, I have to admit — and ellipsis… which I use here and there too.
- It feels reasonable to consider that at some point we might also want to use emojis, as well as some Unicode characters necessary to draw nicer Monodraw graphs — and you know how I love those too 😛.
- And in the era of Unicode I don't see any reason why we shouldn't allow them. (iow, I don't really see the rationale for the default value of this rule.)
I'll add a comment to explain that rationale in the config file anyway indeed.
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.
Rationale added as comment in 70fb5d5
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.
🤣 👍
Co-authored-by: Gio Lodi <giovanni.lodi42@gmail.com>
Style/EmptyMethod: | ||
EnforcedStyle: expanded | ||
|
||
# Trailing commas in array literals helps having smaller diffs when we want to add additional parameters |
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.
👍
Totally out of topic and not really a Ruby friendly thing, but I do love how Elm does trailing commas
[ "this"
, "makes"
, "for"
, "clear"
, "diffs"
]
Quick additional round of fixes.
Note that I think I'll stop doing rubocop after that to focus on #203 and other improvements