Skip to content

Files

Latest commit

 

History

History
45 lines (32 loc) · 497 Bytes

Lint-DuplicateMethods.md

File metadata and controls

45 lines (32 loc) · 497 Bytes

Pattern: Duplicate method definition

Issue: -

Description

This rule checks for duplicated instance (or singleton) method definitions.

Examples

# bad

def duplicated
  1
end

def duplicated
  2
end
# bad

def duplicated
  1
end

alias duplicated other_duplicated
# good

def duplicated
  1
end

def other_duplicated
  2
end

Further Reading