Skip to content

Commit 44cf216

Browse files
committed
Set rubocop to check ruby target version 1.9
1 parent e16fce0 commit 44cf216

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.rubocop.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
AllCops:
2-
TargetRubyVersion: 2.3
3-
4-
Metrics/BlockLength:
5-
Enabled: false
2+
Exclude:
3+
- pkg/**/*
4+
- spec/fixtures/**/*
5+
Include:
6+
- Rakefile
7+
TargetRubyVersion: 1.9
68

79
Style/AndOr:
810
Enabled: false
@@ -31,8 +33,5 @@ Style/MultilineBlockChain:
3133
Style/MultilineBlockLayout:
3234
Enabled: false
3335

34-
Style/MultilineIfModifier:
35-
Enabled: false
36-
3736
Style/Not:
3837
Enabled: false

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ group :test do
2020
gem 'rspec-puppet-facts'
2121
gem 'rspec-puppet-utils'
2222
gem 'rspec-retry'
23-
gem 'rubocop'
23+
# Required to test against Ruby 1.9
24+
gem 'rubocop', '~> 0.41.2'
2425
gem 'rubysl-securerandom'
2526
gem 'webmock'
2627

0 commit comments

Comments
 (0)