Skip to content

Enable Style/MethodDefParentheses in Rubocop#2478

Merged
1 commit merged intomasterfrom
colby/rubocop-method-parentheses
Nov 19, 2018
Merged

Enable Style/MethodDefParentheses in Rubocop#2478
1 commit merged intomasterfrom
colby/rubocop-method-parentheses

Conversation

@colby-swandale
Copy link
Copy Markdown
Member

@colby-swandale colby-swandale commented Nov 19, 2018

Description:

One of my biggest annoyances with the current style of Rubygems' codebase is the inconsistent use of parentheses on method definitions. Their use is very mixed and I want to set a single style (methods definitions must use parentheses) and enforce it with Rubocop.

Tasks:

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

@bronzdoc
Copy link
Copy Markdown
Contributor

This is great @colby-swandale thanks!

@bronzdoc
Copy link
Copy Markdown
Contributor

@bundlerbot r+

ghost pushed a commit that referenced this pull request Nov 19, 2018
2478: Enable Style/MethodDefParentheses in Rubocop r=bronzdoc a=colby-swandale

# Description:

One of my biggest annoyances with the current style of Rubygems' codebase is the inconsistent use of parentheses on method definitions. Their use is very mixed and I want to set a single style (methods definitions *must* use parentheses) and enforce it with Rubocop.

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: Colby Swandale <me@colby.fyi>
@ghost
Copy link
Copy Markdown

ghost commented Nov 19, 2018

Build succeeded

@ghost ghost merged commit 79e6baf into master Nov 19, 2018
@ghost ghost deleted the colby/rubocop-method-parentheses branch November 19, 2018 14:19
ghost pushed a commit that referenced this pull request Nov 19, 2018
2479: Enable Style/MultilineIfThen in Rubocop r=colby-swandale a=bronzdoc

# Description:

Similar to #2478 

Remove trailing `then` keyword from `if` and `unless` statements

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: bronzdoc <lsagastume1990@gmail.com>
matzbot pushed a commit to ruby/ruby that referenced this pull request Nov 21, 2018
  * Enable Style/MethodDefParentheses in Rubocop
    ruby/rubygems#2478
  * Enable Style/MultilineIfThen in Rubocop
    ruby/rubygems#2479
  * Fix required_ruby_version with prereleases and improve error message
    ruby/rubygems#2344
  * Fix bundler rubygems binstub not properly looking for bundler
    ruby/rubygems#2426

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ioquatix pushed a commit to ioquatix/ruby that referenced this pull request Nov 22, 2018
  * Enable Style/MethodDefParentheses in Rubocop
    ruby/rubygems#2478
  * Enable Style/MultilineIfThen in Rubocop
    ruby/rubygems#2479
  * Fix required_ruby_version with prereleases and improve error message
    ruby/rubygems#2344
  * Fix bundler rubygems binstub not properly looking for bundler
    ruby/rubygems#2426

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
bannable pushed a commit to bannable/ruby that referenced this pull request Dec 10, 2018
  * Enable Style/MethodDefParentheses in Rubocop
    ruby/rubygems#2478
  * Enable Style/MultilineIfThen in Rubocop
    ruby/rubygems#2479
  * Fix required_ruby_version with prereleases and improve error message
    ruby/rubygems#2344
  * Fix bundler rubygems binstub not properly looking for bundler
    ruby/rubygems#2426

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt pushed a commit to rubygems/rubygems-server that referenced this pull request Sep 24, 2021
2479: Enable Style/MultilineIfThen in Rubocop r=colby-swandale a=bronzdoc

# Description:

Similar to ruby/rubygems#2478 

Remove trailing `then` keyword from `if` and `unless` statements

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: bronzdoc <lsagastume1990@gmail.com>
pombredanne pushed a commit to aboutcode-org/univers that referenced this pull request Dec 7, 2021
2479: Enable Style/MultilineIfThen in Rubocop r=colby-swandale a=bronzdoc

# Description:

Similar to ruby/rubygems#2478 

Remove trailing `then` keyword from `if` and `unless` statements

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: bronzdoc <lsagastume1990@gmail.com>
This pull request was closed.
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