.rubocop.yml in ogp-0.4.0 vs .rubocop.yml in ogp-0.5.0

- old
+ new

@@ -1,120 +1,140 @@ AllCops: DisplayCopNames: true - Include: - - Rakefile - - config.ru - - Gemfile - - app/tasks/**/*.rake - Exclude: - - bin/** - - db/schema.rb - - db/migrate/** - - script/** - - vendor/**/* - - node_modules/**/* - TargetRubyVersion: 2.3 + SuggestExtensions: false + TargetRubyVersion: 2.7 -Rails: +Bundler/OrderedGems: Enabled: false -Documentation: - Enabled: false +Gemspec/DateAssignment: + Enabled: true -Encoding: - Enabled: false - -LineLength: - Max: 200 - -AccessModifierIndentation: +Layout/AccessModifierIndentation: EnforcedStyle: outdent - -IfUnlessModifier: - Enabled: false - -CaseIndentation: +Layout/CaseIndentation: EnforcedStyle: end IndentOneStep: true - -MethodLength: - CountComments: false - Max: 25 - -SignalException: +Layout/ExtraSpacing: + Enabled: true +Layout/FirstArrayElementIndentation: Enabled: false - -ColonMethodCall: +Layout/HashAlignment: Enabled: false - -AsciiComments: +Layout/LineLength: + Max: 200 +Layout/MultilineMethodCallIndentation: Enabled: false - -RegexpLiteral: +Layout/ParameterAlignment: + EnforcedStyle: with_fixed_indentation +Layout/SpaceBeforeBrackets: + Enabled: true +Layout/SpaceInLambdaLiteral: Enabled: false -AssignmentInCondition: - Enabled: false - -ParameterLists: - CountKeywordArgs: false - -SingleLineBlockParams: - Methods: - - reduce: - - memo - - item - -MethodCalledOnDoEndBlock: +Lint/AmbiguousAssignment: Enabled: true - -Metrics/AbcSize: +Lint/AssignmentInCondition: Enabled: false - -Style/CollectionMethods: +Lint/DeprecatedConstants: Enabled: true - -Style/SymbolArray: +Lint/DuplicateBranch: Enabled: true - -Layout/ExtraSpacing: +Lint/DuplicateRegexpCharacterClassElement: Enabled: true +Lint/EmptyBlock: + Enabled: true +Lint/EmptyClass: + Enabled: true +Lint/LambdaWithoutLiteralBlock: + Enabled: true +Lint/NoReturnInBeginEndBlocks: + Enabled: true +Lint/NumberedParameterAssignment: + Enabled: true +Lint/OrAssignmentToConstant: + Enabled: true +Lint/RedundantDirGlobSort: + Enabled: true +Lint/SymbolConversion: + Enabled: true +Lint/ToEnumArguments: + Enabled: true +Lint/TripleQuotes: + Enabled: true +Lint/UnexpectedBlockArity: + Enabled: true +Lint/UnmodifiedReduceAccumulator: + Enabled: true -Layout/MultilineMethodCallIndentation: +Metrics/AbcSize: Enabled: false - -Layout/IndentArray: +Metrics/BlockLength: + Max: 200 +Metrics/MethodLength: + CountComments: false + Max: 40 +Metrics/PerceivedComplexity: Enabled: false +Metrics/ParameterLists: + CountKeywordArgs: false -Layout/AlignHash: +Style/ArgumentsForwarding: + Enabled: true +Style/CollectionCompact: + Enabled: true +Style/CollectionMethods: + Enabled: true +Style/ColonMethodCall: Enabled: false - -Layout/AlignParameters: - EnforcedStyle: with_fixed_indentation - -Style/FrozenStringLiteralComment: +Style/DocumentDynamicEvalDefinition: + Enabled: true +Style/Documentation: Enabled: false - -Rails/SkipsModelValidations: +Style/Encoding: Enabled: false - -Metrics/BlockLength: - Max: 200 - -Style/PercentLiteralDelimiters: - PreferredDelimiters: - '%i': '()' - '%I': '()' - '%w': '()' - '%W': '()' - -Layout/SpaceInLambdaLiteral: +Style/EndlessMethod: + Enabled: true +Style/FrozenStringLiteralComment: Enabled: false - -Bundler/OrderedGems: +Style/HashConversion: + Enabled: true +Style/HashExcept: + Enabled: true +Style/IfUnlessModifier: Enabled: false - -Rails/OutputSafety: +Style/IfWithBooleanLiteralBranches: + Enabled: true +Style/MethodCalledOnDoEndBlock: + Enabled: true +Style/NegatedIfElseCondition: + Enabled: true +Style/NilLambda: + Enabled: true +Style/PercentLiteralDelimiters: + PreferredDelimiters: + ? "%I" + : () + ? "%W" + : () + ? "%i" + : () + ? "%w" + : () +Style/RedundantArgument: + Enabled: true +Style/RegexpLiteral: Enabled: false - -Performance/StringReplacement: +Style/SignalException: Enabled: false +Style/SingleLineBlockParams: + Methods: + - + reduce: + - memo + - item +Style/StringChars: + Enabled: true +Style/SwapValues: + Enabled: true +Style/SymbolArray: + Enabled: true