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

Introduce/enable a rule for trailing commas in rubocop #105

Closed
denrase opened this issue Nov 3, 2021 · 6 comments
Closed

Introduce/enable a rule for trailing commas in rubocop #105

denrase opened this issue Nov 3, 2021 · 6 comments

Comments

@denrase
Copy link
Collaborator

denrase commented Nov 3, 2021

We should discuss if we wanna use trailing commas and enable the rule we land on in rubocop.

I'm more in the no trailing commas camp, but I think we should discuss this before starting a PR.

Some quick google searches yielded:
rubocop/ruby-style-guide#273
https://rubystyle.guide/#no-trailing-parameters-comma
https://rubystyle.guide/#no-trailing-params-comma

@philipphofmann
Copy link
Member

Sure that sounds reasonable. Are you up for a PR @denrase?

@denrase
Copy link
Collaborator Author

denrase commented Mar 28, 2022

Sure! Do you or anyone from your team have an opinion on this?

@philipphofmann
Copy link
Member

I'm not an expert on Ruby. Maybe it's worth checking out what we do here https://github.com/getsentry/sentry-ruby ?

@denrase
Copy link
Collaborator Author

denrase commented Apr 12, 2022

@philipphofmann When trying to configure this, i wondered why rubocop is not issuing warnings when i made changes. Turns out, it is only configured for the Fastfile, as the AllCops include is overriding the default.

AllCops:
  Include:
    - '**/fastlane/Fastfile'

When removing the include, we get 232 offences, which may also include directories we don't care about.

Bildschirmfoto 2022-04-12 um 10 55 26

Now the question is, is it supposed to be only configured for the Fastfile?

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2022

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@philipphofmann
Copy link
Member

This was fixed with #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants