.rubocop.yml in gistory-0.1.8 vs .rubocop.yml in gistory-0.2.0

- old
+ new

@@ -1,7 +1,6 @@ -Documentation: - Enabled: false +require: rubocop-rspec Metrics/AbcSize: Max: 25 Exclude: - 'spec/**/*_spec.rb' @@ -11,20 +10,75 @@ - 'spec/**/*_spec.rb' Metrics/MethodLength: Max: 20 -Metrics/LineLength: - Max: 120 - Layout/EmptyLineAfterGuardClause: Enabled: false +Layout/LineLength: + Max: 120 + Style/BlockDelimiters: Exclude: - 'spec/**/*_spec.rb' +Style/Documentation: + Enabled: false + Style/IfUnlessModifier: Enabled: false Style/FrozenStringLiteralComment: EnforcedStyle: always + +# rubocop-rspec + +RSpec/MultipleExpectations: + Max: 15 + +RSpec/ExampleLength: + Max: 15 + +# starting rubocop 0.80 newly added cops need to be explicitly enabled: + +Lint/DeprecatedOpenSSLConstant: + Enabled: true + +Layout/EmptyLinesAroundAttributeAccessor: + Enabled: true + +Lint/MixedRegexpCaptureTypes: + Enabled: true + +Lint/RaiseException: + Enabled: true + +Layout/SpaceAroundMethodCallOperator: + Enabled: true + +Lint/StructNewOverride: + Enabled: true + +Style/ExponentialNotation: + Enabled: true + +Style/HashEachMethods: + Enabled: true + +Style/HashTransformKeys: + Enabled: true + +Style/HashTransformValues: + Enabled: true + +Style/RedundantFetchBlock: + Enabled: true + +Style/RedundantRegexpCharacterClass: + Enabled: true + +Style/RedundantRegexpEscape: + Enabled: true + +Style/SlicingWithRange: + Enabled: true