Add and apply DuplicateMethods rubocop rule

These methods were defined with `attr_reader` (or accessor in some
cases) and then they were redefined.
This commit is contained in:
Javi Martín
2019-09-28 22:35:34 +02:00
parent 6ffe563264
commit 93a2ebd46f
4 changed files with 6 additions and 3 deletions

View File

@@ -120,6 +120,9 @@ Layout/TrailingWhitespace:
Lint/AmbiguousRegexpLiteral:
Enabled: true
Lint/DuplicateMethods:
Enabled: true
Lint/LiteralAsCondition:
Enabled: true