Ruby

Ruby

Made by DeepSource

Put empty method definitions on a single line RB-ST1042

Style
Minor
Autofix

Put the end of empty method definitions on the next line. A method definition is not considered empty if it contains comments.

Bad practice

def foo(bar)
end

def self.foo(bar)
end

Recommended

def foo(bar); end

def foo(bar)
  # baz
end

def self.foo(bar); end