diff --git a/.rubocop.yml b/.rubocop.yml index 3a4bc62..adcab6a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,8 +1,7 @@ require: rubocop-performance -# -- main -- - AllCops: + NewCops: enable TargetRubyVersion: 2.5 Layout/EmptyLinesAroundExceptionHandlingKeywords: @@ -62,123 +61,3 @@ Style/StringLiterals: EnforcedStyle: double_quotes Style/YodaCondition: Enabled: false - -# -- others -- - -Layout/BeginEndAlignment: - Enabled: true -Layout/EmptyLinesAroundAttributeAccessor: - Enabled: true -Layout/SpaceAroundMethodCallOperator: - Enabled: true - -Lint/BinaryOperatorWithIdenticalOperands: - Enabled: true -Lint/ConstantDefinitionInBlock: - Enabled: true -Lint/DeprecatedOpenSSLConstant: - Enabled: true -Lint/DuplicateElsifCondition: - Enabled: true -Lint/DuplicateRequire: - Enabled: true -Lint/DuplicateRescueException: - Enabled: true -Lint/EmptyConditionalBody: - Enabled: true -Lint/EmptyFile: - Enabled: true -Lint/FloatComparison: - Enabled: true -Lint/IdentityComparison: - Enabled: true -Lint/MissingSuper: - Enabled: true -Lint/MixedRegexpCaptureTypes: - Enabled: true -Lint/OutOfRangeRegexpRef: - Enabled: true -Lint/RaiseException: - Enabled: true -Lint/SelfAssignment: - Enabled: true -Lint/StructNewOverride: - Enabled: true -Lint/TopLevelReturnWithArgument: - Enabled: true -Lint/TrailingCommaInAttributeDeclaration: - Enabled: true -Lint/UnreachableLoop: - Enabled: true -Lint/UselessMethodDefinition: - Enabled: true -Lint/UselessTimes: - Enabled: true - -Style/ArrayCoercion: - Enabled: true -Style/BisectedAttrAccessor: - Enabled: true -Style/CaseLikeIf: - Enabled: true -Style/CombinableLoops: - Enabled: true -Style/ExplicitBlockArgument: - Enabled: true -Style/ExponentialNotation: - Enabled: true -Style/GlobalStdStream: - Enabled: true -Style/HashAsLastArrayItem: - Enabled: true -Style/HashEachMethods: - Enabled: true -Style/HashLikeCase: - Enabled: true -Style/HashTransformKeys: - Enabled: true -Style/HashTransformValues: - Enabled: true -Style/KeywordParametersOrder: - Enabled: true -Style/OptionalBooleanParameter: - Enabled: true -Style/RedundantAssignment: - Enabled: true -Style/RedundantFetchBlock: - Enabled: true -Style/RedundantFileExtensionInRequire: - Enabled: true -Style/RedundantRegexpCharacterClass: - Enabled: true -Style/RedundantRegexpEscape: - Enabled: true -Style/RedundantSelfAssignment: - Enabled: true -Style/SingleArgumentDig: - Enabled: true -Style/SlicingWithRange: - Enabled: true -Style/SoleNestedConditional: - Enabled: true -Style/StringConcatenation: - Enabled: true - -Performance/AncestorsInclude: - Enabled: true -Performance/BigDecimalWithNumericArgument: - Enabled: true -Performance/RedundantSortBlock: - Enabled: true -Performance/RedundantStringChars: - Enabled: true -Performance/ReverseFirst: - Enabled: true -Performance/SortReverse: - Enabled: true -Performance/Squeeze: - Enabled: true -Performance/StringInclude: - Enabled: true -Performance/Sum: - Enabled: true