Skip to content

Conversation

@github-actions
Copy link
Contributor

Rubocop challenge!

Layout/SpaceAroundEqualsInParameterDefault

Safe autocorrect: Yes
✅ The autocorrect a cop does is safe (equivalent) by design.

Description

Overview

Checks that the equals signs in parameter default assignments
have or don't have surrounding space depending on configuration.

Examples

EnforcedStyle: space (default)

# bad
def some_method(arg1=:default, arg2=nil, arg3=[])
  # do something...
end

# good
def some_method(arg1 = :default, arg2 = nil, arg3 = [])
  # do something...
end

EnforcedStyle: no_space

# bad
def some_method(arg1 = :default, arg2 = nil, arg3 = [])
  # do something...
end

# good
def some_method(arg1=:default, arg2=nil, arg3=[])
  # do something...
end

Auto generated by rubocop_challenger

@mathieujobin mathieujobin merged commit 86fc024 into master Jun 30, 2022
@mathieujobin mathieujobin deleted the rubocop-challenge/20220628233346 branch June 30, 2022 03:45
smshuja pushed a commit to TheTalentEnterprise/webhook_system that referenced this pull request Jan 25, 2024
…o#45)

* 🚓 regenerate rubocop todo

* 🚓 Layout/SpaceAroundEqualsInParameterDefault

* 🚓 regenerate rubocop todo

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>
Co-authored-by: Mathieu Jobin <mathieujobin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants