Skip to content

Commit

Permalink
Merge pull request #234 from glennsarti/update-rubocop
Browse files Browse the repository at this point in the history
Self merging
  • Loading branch information
glennsarti authored Apr 3, 2020
2 parents 346ad8c + 35192cd commit a41b142
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Style/NumericLiterals:
Enabled: false

# Length is not useful indicator
Metrics/LineLength:
Layout/LineLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Expand Down Expand Up @@ -95,3 +95,20 @@ Style/SafeNavigation:
# This is not valid on Ruby 2.1
Layout/HeredocIndentation:
Enabled: false

# Rubocop 0.80.0 rules
Style/HashEachMethods:
Enabled: false

Style/HashTransformKeys:
Enabled: true

Style/HashTransformValues:
Enabled: true

# Rubocop 0.80.1 rules
Lint/RaiseException:
Enabled: true

Lint/StructNewOverride:
Enabled: true
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ group :development do
gem 'rspec', '>= 3.2', :require => false

if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('2.3.0')
gem "rubocop", ">= 0.77.0", :require => false, :platforms => [:ruby, :x64_mingw]
gem "rubocop", ">= 0.80.0", :require => false, :platforms => [:ruby, :x64_mingw]
end

if ENV['PUPPET_GEM_VERSION']
Expand Down

0 comments on commit a41b142

Please sign in to comment.