Skip to content

Commit 96b81c0

Browse files
authored
Merge pull request puppetlabs#13 from DavidS/pin-rubocop
(maint) pin rubocop and configure new rules
2 parents 9b29b67 + 34b605c commit 96b81c0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.rubocop.yml

+7
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,10 @@ Style/HashTransformValues:
171171
# Enforce LF line endings, even when on Windows
172172
Layout/EndOfLine:
173173
EnforcedStyle: lf
174+
175+
# new as of rubocop 0.81
176+
Lint/RaiseException:
177+
Enabled: true
178+
179+
Lint/StructNewOverride:
180+
Enabled: true

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ group :development do
99
gem 'rake', '~> 12.0'
1010
gem 'rspec', '~> 3.0'
1111
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0')
12-
gem 'rubocop', '~> 0.68'
12+
gem 'rubocop', ['~> 0.68', '< 0.82.0']
1313
gem 'rubocop-rspec', '~> 1.38'
1414

1515
gem 'codecov', '~> 0.1'

0 commit comments

Comments
 (0)