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

Improve Layout/SpaceAroundOperators cop #12337

Closed
ydakuka opened this issue Nov 4, 2023 · 0 comments · Fixed by #12357
Closed

Improve Layout/SpaceAroundOperators cop #12337

ydakuka opened this issue Nov 4, 2023 · 0 comments · Fixed by #12357

Comments

@ydakuka
Copy link

ydakuka commented Nov 4, 2023

Description

https://rubystyle.guide/#spaces-operators

Describe the solution you'd like

# bad
o_scale = 1 / 48r

# good
o_scale = 1/48r
koic added a commit to koic/rubocop that referenced this issue Nov 5, 2023
…ayout/SpaceAroundOperators`

Fixes rubocop#12337.

This PR supports `EnforcedStyleForRationalLiterals` option for `Layout/SpaceAroundOperators`.
Like `SupportedStylesForExponentOperator` option, the default follows the style guide with `no_space`.
bbatsov pushed a commit that referenced this issue Nov 5, 2023
…paceAroundOperators`

Fixes #12337.

This PR supports `EnforcedStyleForRationalLiterals` option for `Layout/SpaceAroundOperators`.
Like `SupportedStylesForExponentOperator` option, the default follows the style guide with `no_space`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants