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

[Cleanup/rubocop] 6 #217

Merged
merged 6 commits into from
Feb 25, 2021
Merged

[Cleanup/rubocop] 6 #217

merged 6 commits into from
Feb 25, 2021

Conversation

AliSoftware
Copy link
Contributor

Quick additional round of fixes.

Note that I think I'll stop doing rubocop after that to focus on #203 and other improvements

Copy link
Contributor

@mokagio mokagio left a 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.

Comment on lines +32 to +33
Style/AsciiComments:
Enabled: false
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

@AliSoftware AliSoftware Feb 25, 2021

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.

TL;DR:
"Jealous Girlfriend" meme variation with em dash

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

🤣 👍

@AliSoftware AliSoftware merged commit 228044e into toolkit-cleanup Feb 25, 2021
@AliSoftware AliSoftware deleted the cleanup/rubocop/6 branch February 25, 2021 15:55
Style/EmptyMethod:
EnforcedStyle: expanded

# Trailing commas in array literals helps having smaller diffs when we want to add additional parameters
Copy link
Contributor

@mokagio mokagio Feb 26, 2021

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"
]

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.

2 participants