.rubocop.yml in resque-rate_limited-1.2.0 vs .rubocop.yml in resque-rate_limited-1.2.2

- old
+ new

@@ -1,11 +1,12 @@ --- AllCops: + TargetRubyVersion: 2.0 + DisplayCopNames: true Exclude: - 'tmp/**/*' - 'coverage/**/*' - - 'spec/dummy/**/*' #------------------------------------------------------------------------------- # Project standards #------------------------------------------------------------------------------- StringLiterals: @@ -23,24 +24,31 @@ FileName: Description: 'Use snake_case for source file names.' Enabled: true -Style/SymbolArray: - Description: 'Use %i or %I for arrays of symbols.' - StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-i' - Enabled: false # Only available in Ruby 2.0+ - Style/ExtraSpacing: Description: 'Do not use unnecessary spacing.' Enabled: true Lint/LiteralInInterpolation: Description: 'Avoid interpolating literals in strings' AutoCorrect: true -#------------------------------------------------------------------------------- -# These rules have been relaxed because of existing code -# We should tighten these up over time -#------------------------------------------------------------------------------- -LineLength: - Max: 166 # project standard is 120 +Style/PercentLiteralDelimiters: + # Hound and CodeClimate are currently using an old version of Rubocop with + # different defaults, so we set them explicitly here. + PreferredDelimiters: + default: () + '%i': '[]' + '%I': '[]' + '%r': '{}' + '%w': '[]' + '%W': '[]' + +Metrics/LineLength: + Max: 120 + +Metrics/BlockLength: + Exclude: + - 'spec/**/*_spec.rb' + - '*.gemspec'