.rubocop.yml in freno-client-0.8.1 vs .rubocop.yml in freno-client-0.8.2
- old
+ new
@@ -1,179 +1,44 @@
-require: rubocop-performance
+require:
+- rubocop-minitest
+- rubocop-performance
+- rubocop-rake
AllCops:
- DisabledByDefault: true
- TargetRubyVersion: 2.5
+ NewCops: enable
+ TargetRubyVersion: 2.7
-Bundler/DuplicatedGem:
+Layout/MultilineMethodCallIndentation:
Enabled: true
-Bundler/OrderedGems:
- Enabled: true
+ EnforcedStyle: indented_relative_to_receiver
-Layout/BlockAlignment:
- Enabled: true
-Layout/BlockEndNewline:
- Enabled: true
-Layout/ConditionPosition:
- Enabled: true
-Layout/DefEndAlignment:
- Enabled: true
-Layout/EndOfLine:
- Enabled: true
-Layout/IndentationStyle:
- Enabled: true
-Layout/InitialIndentation:
- Enabled: true
-Layout/SpaceAfterColon:
- Enabled: true
-Layout/SpaceAfterComma:
- Enabled: true
-Layout/SpaceAfterMethodName:
- Enabled: true
-Layout/SpaceAfterNot:
- Enabled: true
-Layout/SpaceAfterSemicolon:
- Enabled: true
-Layout/SpaceAroundBlockParameters:
- Enabled: true
-Layout/SpaceAroundEqualsInParameterDefault:
- Enabled: true
-Layout/SpaceInsideArrayPercentLiteral:
- Enabled: true
-Layout/SpaceInsideParens:
- Enabled: true
-Layout/SpaceInsideRangeLiteral:
- Enabled: true
-Layout/TrailingEmptyLines:
- Enabled: true
-Layout/TrailingWhitespace:
- Enabled: true
+Metrics:
+ Enabled: false
-Lint/CircularArgumentReference:
- Enabled: true
-Lint/Debugger:
- Enabled: true
-Lint/DeprecatedClassMethods:
- Enabled: true
-Lint/DuplicateHashKey:
- Enabled: true
-Lint/DuplicateMethods:
- Enabled: true
-Lint/EachWithObjectArgument:
- Enabled: true
-Lint/ElseLayout:
- Enabled: true
-Lint/EmptyEnsure:
- Enabled: true
-Lint/EmptyInterpolation:
- Enabled: true
-Lint/EnsureReturn:
- Enabled: true
-Lint/FlipFlop:
- Enabled: true
-Lint/FloatOutOfRange:
- Enabled: true
-Lint/FormatParameterMismatch:
- Enabled: true
-Lint/LiteralInInterpolation:
- Enabled: true
-Lint/Loop:
- Enabled: true
-Lint/NextWithoutAccumulator:
- Enabled: true
-Lint/RandOne:
- Enabled: true
-Lint/RedundantSplatExpansion:
- Enabled: true
-Lint/RedundantStringCoercion:
- Enabled: true
-Lint/RequireParentheses:
- Enabled: true
-Lint/RescueException:
- Enabled: true
-Lint/UnderscorePrefixedVariableName:
- Enabled: true
-Lint/UnreachableCode:
- Enabled: true
-Lint/UselessComparison:
- Enabled: true
-Lint/UselessSetterCall:
- Enabled: true
-Lint/Void:
- Enabled: true
+Minitest/AssertEmptyLiteral:
+ Enabled: false
+Minitest/AssertEqual:
+ Enabled: false
+Minitest/AssertPredicate:
+ Enabled: false
+Minitest/MultipleAssertions:
+ Enabled: false
+Minitest/RefutePredicate:
+ Enabled: false
-Naming/AsciiIdentifiers:
+Naming/RescuedExceptionsVariableName:
Enabled: true
-Naming/ClassAndModuleCamelCase:
- Enabled: true
-Naming/FileName:
- Enabled: true
-Naming/MethodName:
- Enabled: true
+ PreferredName: error
-Performance/Count:
+Style/ClassAndModuleChildren:
Enabled: true
-Performance/Detect:
- Enabled: true
-Performance/DoubleStartEndWith:
- Enabled: true
-Performance/EndWith:
- Enabled: true
-Performance/FlatMap:
- Enabled: true
-Performance/RedundantMerge:
- Enabled: true
- MaxKeyValuePairs: 1
-Performance/ReverseEach:
- Enabled: true
-Performance/Size:
- Enabled: true
-Performance/StartWith:
- Enabled: true
-
-Security/Eval:
- Enabled: true
-
-Style/ArrayJoin:
- Enabled: true
-Style/BeginBlock:
- Enabled: true
-Style/BlockComments:
- Enabled: true
-Style/CaseEquality:
- Enabled: true
-Style/CharacterLiteral:
- Enabled: true
-Style/ClassMethods:
- Enabled: true
-Style/DefWithParentheses:
- Enabled: true
-Style/EndBlock:
- Enabled: true
-Style/For:
- Enabled: true
-Style/HashSyntax:
- Enabled: true
- EnforcedStyle: ruby19
-Style/LambdaCall:
- Enabled: true
-Style/MethodCallWithoutArgsParentheses:
- Enabled: true
-Style/MethodDefParentheses:
- Enabled: true
-Style/MultilineIfThen:
- Enabled: true
-Style/NilComparison:
- Enabled: true
-Style/Not:
- Enabled: true
-Style/OneLineConditional:
- Enabled: true
-Style/RedundantSortBy:
- Enabled: true
-Style/Sample:
- Enabled: true
-Style/StabbyLambdaParentheses:
- Enabled: true
+ Exclude:
+ - test/**/*
+Style/Documentation:
+ Enabled: false
+Style/IfUnlessModifier:
+ Enabled: false
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
+Style/SymbolArray:
+ Enabled: false