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 updates #1118

Merged
merged 2 commits into from
Aug 23, 2024
Merged

Rubocop updates #1118

merged 2 commits into from
Aug 23, 2024

Conversation

zachgoll
Copy link
Collaborator

No functional code changes here; just formatting and linting due to changing a few Rubocop rules and running rubocop -a on the codebase.

  • Added .editorconfig with a minimal set of rules (no tabs, 2 spaces)
  • Added some Rubocop rules around indentation

In general, we'll stay away from adding too many Rubocop rules, but enforcing 2 spaces is helpful


Layout/SpaceInsidePercentLiteralDelimiters:
Enabled: true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The Rails omakase config disables this one and prefers %i[ items with space ].

That said, there is no Cop rule that can enforce this. Given the OSS nature of this project, consistency is the most important thing; hence adding this rule in.

@zachgoll zachgoll merged commit eef4c26 into main Aug 23, 2024
4 checks passed
@zachgoll zachgoll deleted the zachgoll/rubocop-updates branch August 23, 2024 14:06
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.

1 participant