Enable a set of Lint/* cops
What does this MR do and why?
This MR enables a set of Lint/*
cops.
Lint/AmbiguousAssignment
Lint/AmbiguousOperatorPrecedence
Lint/AmbiguousRange
Lint/ConstantOverwrittenInRescue
Lint/DeprecatedConstants
-
Lint/DuplicateBranch
- With
IgnoreLiteralBranches: true
andIgnoreConstantBranches: true
- With
Lint/DuplicateMagicComment
-
Lint/DuplicateRegexpCharacterClassElement
- Accounts for Ruby warning
warning: character class has duplicated range
- See gitlab-org/gitlab#196852
- Accounts for Ruby warning
Lint/EmptyBlock
Lint/EmptyClass
Lint/EmptyInPattern
Contributes to #40.
gitlab-org/gitlab
Testing on
Edited by Peter Leitzen