Skip to content

Enable Style/MethodDefParentheses rule #1342

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

Merged
merged 2 commits into from
Apr 21, 2025

Conversation

vinistock
Copy link
Collaborator

The RDoc codebase has very few conventions. I think it would be nice to standardize the style of the code a bit more. I propose we start requiring parenthesis in method definitions, which in my opinion makes the code more readable.

This PR just changes the configurations and then runs bundle exec rubocop -a. I also excluded generated files from linting.

@vinistock vinistock requested a review from st0012 April 18, 2025 12:03
@vinistock vinistock self-assigned this Apr 18, 2025
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@vinistock vinistock force-pushed the vs-enable-method-def-parenthesis branch from 226e714 to 02484f8 Compare April 21, 2025 12:20
Enable parenthesis for method definitions so that
we have more consistency in the codebase. In
addition to that, I disabled running RuboCop on
generated parser files.
`$ bundle exec rubocop -a` after the configuration
changes
@vinistock vinistock force-pushed the vs-enable-method-def-parenthesis branch from 02484f8 to 610b90b Compare April 21, 2025 20:02
@vinistock vinistock merged commit 3c5717d into ruby:master Apr 21, 2025
30 checks passed
@vinistock vinistock deleted the vs-enable-method-def-parenthesis branch April 21, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants