diff --git a/.rubocop.yml b/.rubocop.yml index 9b9bc37b..bdd4b424 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -65,6 +65,8 @@ Lint/ConstantDefinitionInBlock: - test/**/*.rb Lint/DeprecatedOpenSSLConstant: Enabled: true +Lint/DuplicateBranch: + Enabled: true Lint/DuplicateElsifCondition: Enabled: true Lint/DuplicateRegexpCharacterClassElement: @@ -75,6 +77,8 @@ Lint/DuplicateRequire: Enabled: true Lint/EmptyBlock: Enabled: true +Lint/EmptyClass: + Enabled: true Lint/EmptyConditionalBody: Enabled: true Lint/EmptyFile: @@ -172,10 +176,20 @@ Naming/MemoizedInstanceVariableName: Performance/AncestorsInclude: Enabled: false +Performance/ArraySemiInfiniteRangeSlice: + Enabled: true Performance/BigDecimalWithNumericArgument: Enabled: true +Performance/BlockGivenWithExplicitBlock: + Enabled: true Performance/ChainArrayAllocation: Enabled: true +Performance/CollectionLiteralInLoop: + Enabled: true +Performance/ConstantRegexp: + Enabled: true +Performance/MethodObjectAsBlock: + Enabled: true Performance/RedundantSortBlock: Enabled: true Performance/RedundantStringChars: @@ -272,6 +286,8 @@ Style/MultilineTernaryOperator: Severity: error Style/NegatedIfElseCondition: Enabled: true +Style/NilLambda: + Enabled: true Style/OptionalBooleanParameter: Enabled: true Style/PercentLiteralDelimiters: @@ -283,6 +299,8 @@ Style/PercentLiteralDelimiters: "%w": "()" "%W": "()" "%x": "()" +Style/RedundantArgument: + Enabled: true Style/RedundantAssignment: Enabled: true Style/RedundantFetchBlock: