Ruby

Ruby

Made by DeepSource

Access modifiers should be declared as a group RB-ST1001

Style
Major

Access group modifiers should be declared as a group.

Bad practice

class Foo

  private def bar; end
  private def baz; end

end

Recommended

class Foo

  private

  def bar; end
  def baz; end

end