.rubocop.yml in junk_drawer-1.8.0 vs .rubocop.yml in junk_drawer-2.0.0

- old
+ new

@@ -1,102 +1,70 @@ +inherit_from: .rubocop_todo.yml + require: rubocop-rspec AllCops: DefaultFormatter: fuubar TargetRubyVersion: 2.3 DisplayCopNames: true + NewCops: enable +Layout/AccessModifierIndentation: + EnforcedStyle: outdent + +Layout/EmptyLinesAroundClassBody: + EnforcedStyle: empty_lines + Lint/AmbiguousBlockAssociation: Exclude: - spec/**/*_spec.rb Metrics/AbcSize: Exclude: - lib/junk_drawer/rails/bulk_updatable.rb -Metrics/MethodLength: - Exclude: - - lib/junk_drawer/rails/bulk_updatable.rb - Metrics/BlockLength: Exclude: - junk_drawer.gemspec - spec/**/* +Metrics/MethodLength: + Exclude: + - lib/junk_drawer/rails/bulk_updatable.rb + +Naming/VariableNumber: + EnforcedStyle: snake_case + +RSpec/AnyInstance: { Enabled: false } # broken, re-enable after upgrade +RSpec/DescribeClass: { Enabled: false } # broken, re-enable after upgrade + RSpec/ExampleLength: Enabled: false +RSpec/FilePath: + IgnoreMethods: true + Exclude: + - spec/junk_drawer/rails/bulk_updatable_spec.rb + RSpec/MultipleExpectations: Enabled: false -# default disabled rules -Style/AutoResourceCleanup: - Enabled: true - +# non-conventional rules Style/CollectionMethods: - Enabled: true PreferredMethods: collect: 'map' collect!: 'map!' inject: 'reduce' find: 'detect' find_all: 'select' -Style/FirstArrayElementLineBreak: - Enabled: true - -Style/FirstHashElementLineBreak: - Enabled: true - -Style/FirstMethodArgumentLineBreak: - Enabled: true - -Style/FirstMethodParameterLineBreak: - Enabled: true - -Style/MultilineArrayBraceLayout: - Enabled: true - -Style/MultilineHashBraceLayout: - Enabled: true - -Style/MultilineMethodCallBraceLayout: - Enabled: true - -Style/MultilineMethodDefinitionBraceLayout: - Enabled: true - -Style/OptionHash: - Enabled: true - -Style/Send: - Enabled: true - -RSpec/FilePath: - IgnoreMethods: true - Exclude: - - spec/junk_drawer/rails/bulk_updatable_spec.rb - -RSpec/VerifiedDoubles: - Enabled: true - -# non-conventional rules Style/LambdaCall: EnforcedStyle: braces -Style/EmptyLinesAroundClassBody: - EnforcedStyle: empty_lines - -Style/AccessModifierIndentation: - EnforcedStyle: outdent - -Style/TrailingCommaInLiteral: - EnforcedStyleForMultiline: comma - Style/TrailingCommaInArguments: EnforcedStyleForMultiline: consistent_comma -Style/TrailingCommaInArguments: - EnforcedStyleForMultiline: consistent_comma +Style/TrailingCommaInArrayLiteral: + EnforcedStyleForMultiline: comma -Style/VariableNumber: - EnforcedStyle: snake_case +Style/TrailingCommaInHashLiteral: + EnforcedStyleForMultiline: comma