default.yml in rubocopital-0.6.1 vs default.yml in rubocopital-0.7.0

- old
+ new

@@ -1,9 +1,9 @@ inherit_from: .rubocop-performance.yml AllCops: - TargetRubyVersion: 2.3 + TargetRubyVersion: 2.6 Exclude: - db/migrate/* - db/seeds/* - db/schema.rb - db/seeds.rb @@ -88,20 +88,29 @@ Enabled: false Style/UnpackFirst: Enabled: false +Layout/EmptyLinesAroundAttributeAccessor: + Enabled: true + +Layout/SpaceAroundMethodCallOperator: + Enabled: true + Layout/EndAlignment: EnforcedStyleAlignWith: variable Layout/HeredocArgumentClosingParenthesis: Enabled: true Layout/FirstParameterIndentation: Enabled: true EnforcedStyle: consistent +Layout/LineLength: + Max: 120 + Layout/MultilineMethodCallIndentation: EnforcedStyle: indented Layout/MultilineOperationIndentation: EnforcedStyle: indented @@ -110,13 +119,10 @@ Enabled: true Metrics/AbcSize: Enabled: false -Metrics/LineLength: - Max: 120 - Metrics/BlockLength: CountComments: false # count full line comments? Max: 50 Exclude: - spec/**/**.rb @@ -163,10 +169,58 @@ EnforcedStyle: both Style/StringLiterals: Enabled: false +Style/ArrayCoercion: + Enabled: true + +Style/CaseLikeIf: + Enabled: true + +Style/HashAsLastArrayItem: + Enabled: true + +Style/HashLikeCase: + Enabled: true + +Style/HashTransformKeys: + Enabled: true + +Style/HashTransformValues: + Enabled: true + +Style/RedundantAssignment: + Enabled: true + +Style/RedundantFetchBlock: + Enabled: true + +Style/RedundantFileExtensionInRequire: + Enabled: true + +Style/RedundantRegexpCharacterClass: + Enabled: true + +Style/RedundantRegexpEscape: + Enabled: true + +Style/SlicingWithRange: + Enabled: true + +Style/HashEachMethods: + Enabled: true + +Style/ExponentialNotation: + Enabled: true + +Style/BisectedAttrAccessor: + Enabled: true + +Style/AccessorGrouping: + Enabled: true + Style/StringLiteralsInInterpolation: Enabled: false Lint/DisjunctiveAssignmentInConstructor: Enabled: true @@ -182,6 +236,24 @@ Lint/ToJSON: Enabled: true Gemspec/RubyVersionGlobalsUsage: + Enabled: true + +Lint/NonDeterministicRequireOrder: + Enabled: false + +Lint/RaiseException: + Enabled: true + +Lint/MixedRegexpCaptureTypes: + Enabled: true + +Lint/DeprecatedOpenSSLConstant: + Enabled: true + +Lint/StructNewOverride: + Enabled: true + +Lint/DuplicateElsifCondition: Enabled: true