We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running rubocop --safe-auto-correct shouldn't cause any syntax issues.
rubocop --safe-auto-correct
It is possible to cause syntax issues with combinations of auto correct, even when using --safe-auto-correct
--safe-auto-correct
given the following config in .rubocop.yml:
# all other rules inherit from default Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: consistent_comma
and the following ruby code:
def print_args(*args) puts(args) end print_args 1, 2, { dar: 'car', }
Running rubocop --safe-auto-correct results in the following code with a syntax error:
def print_args(*args) puts(args) end print_args 1, 2, dar: 'car',
0.79.0
The text was updated successfully, but these errors were encountered:
Thanks for the feedback. Style/BracesAroundHashParameters cop will be removed in the next RuboCop release. #7641
Style/BracesAroundHashParameters
Please running with Style/BracesAroundHashParameters disabled.
Style/BracesAroundHashParameters: Enabled: false
Thank you.
Sorry, something went wrong.
No branches or pull requests
Expected behavior
Running
rubocop --safe-auto-correct
shouldn't cause any syntax issues.Actual behavior
It is possible to cause syntax issues with combinations of auto correct, even when using
--safe-auto-correct
Steps to reproduce the problem
given the following config in .rubocop.yml:
and the following ruby code:
Running
rubocop --safe-auto-correct
results in the following code with a syntax error:RuboCop version
0.79.0
The text was updated successfully, but these errors were encountered: