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

Layout/EmptyLinesAroundAccessModifier-20240110233319 #16

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

github-actions[bot]
Copy link
Contributor

Rubocop challenge!

Layout/EmptyLinesAroundAccessModifier

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

Description

Overview

Access modifiers should be surrounded by blank lines.

Examples

EnforcedStyle: around (default)

# bad
class Foo
  def bar; end
  private
  def baz; end
end

# good
class Foo
  def bar; end

  private

  def baz; end
end

EnforcedStyle: only_before

# bad
class Foo
  def bar; end
  private
  def baz; end
end

# good
class Foo
  def bar; end

  private
  def baz; end
end

Auto generated by rubocop_challenger

@mathieujobin mathieujobin merged commit ce0c780 into master Jan 16, 2024
30 checks passed
@mathieujobin mathieujobin deleted the rubocop-challenge/20240110233319 branch January 16, 2024 10:28
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.

1 participant