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

Rubocop with Rails 7.0 defaults + autofixes #1137

Closed

Conversation

archonic
Copy link
Contributor

What it does

Not sure how you feel about rubocop but this introduces it and implements autofixes with the Rails 7.0 defaults (without rubocop-packaging).

Why it is important

Formalizes acceptable syntax without enforcing it

Your bandwidth for additional changes to this PR

  • I have the time and interest to make additional changes to this PR based on feedback.

@archonic archonic changed the title Rubocop-rails-defaults-2 Rubocop with Rails 7.0 defaults + autofixes Sep 30, 2023
@jim
Copy link
Member

jim commented Oct 3, 2023

Thanks for taking the time to put this together! Code consistency is important.

We have been using standard, which is a basically a set of config for Rubocop that doesn't have any knobs (which I admit is a pro or con depending on how you look at it 😄). It's closer to my personal preferences, too, but mostly I like not having anything to configure or talk about configuring.

Before we switch from standard all together, I think it would be worth upgrading it since we're pretty far behind and probably adding standard-rails which we hadn't had setup previously. If that's interesting and you'd want to give it a shot, great! But if not, I no worries and I'll probably give it a try over the next week or so. Then I'll either close or merge this based on how it turns out.

@jim jim self-assigned this Nov 10, 2023
phinze added a commit that referenced this pull request Nov 13, 2023
It was mentioned in #1137 and it should be helpful to keep around to
make sure we're following some standard style practices with Rails
@phinze phinze mentioned this pull request Nov 13, 2023
phinze added a commit that referenced this pull request Nov 14, 2023
It was mentioned in #1137 and it should be helpful to keep around to
make sure we're following some standard style practices with Rails

# What it does

Adds extra Rails-centric rules to the Ruby linter.

# Why it is important

Keeps all contributors writing similar looking code.
@jim
Copy link
Member

jim commented Nov 29, 2023

Thanks again for getting the ball rolling on the Rails 7 upgrade! I think we're in a good place now with #1190 being merged, so I'll close this issue.

@jim jim closed this Nov 29, 2023
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