Skip to content

Commit c822e50

Browse files
committed
Make rubocop happy
1 parent 7c6f9ed commit c822e50

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

.rubocop.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
AllCops:
2+
NewCops: enable
23
Exclude:
34
- '**/*.erb'
45
- 'vendor/**/*'
@@ -18,15 +19,15 @@ Style/SymbolArray:
1819
Style/WordArray:
1920
Enabled: false
2021

22+
# There is no real reason to check for line length
23+
Layout/LineLength:
24+
Enabled: false
25+
2126
# This isn't really necessary as they limit us in how
2227
# long text can be when describing a test
2328
Metrics/BlockLength:
2429
Enabled: false
2530

26-
# There is no real reason to check for line length
27-
Metrics/LineLength:
28-
Enabled: false
29-
3031
# Disable MixinUsage
3132
Style/MixinUsage:
3233
Enabled: false
@@ -35,4 +36,4 @@ Style/FrozenStringLiteralComment:
3536
Enabled: false
3637

3738
Style/Documentation:
38-
Enabled: false
39+
Enabled: false

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.0
1+
2.5.0

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
33
puppetversion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : ['>= 3.3', '< 6']
44
gem 'facter', '<= 2.4.6', '>= 1.7.0'
55
gem 'puppet', puppetversion
6-
gem 'puppet-lint', '>= 1.0.0'
76
gem 'puppetlabs_spec_helper', '>= 1.0.0'
7+
gem 'puppet-lint', '>= 1.0.0'
88
gem 'rspec-puppet', '<= 2.5.0'
99
gem 'rspec-puppet-facts', '< 1.8.0'
1010
gem 'safe_yaml', '~> 1.0.4'

spec/classes/csf_docker_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'spec_helper'
2-
require_relative '../facts.rb'
2+
require_relative '../facts'
33

44
describe 'csf::docker' do
55
context 'supported operating systems' do

spec/classes/csf_init_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'spec_helper'
2-
require_relative '../facts.rb'
2+
require_relative '../facts'
33

44
describe 'csf' do
55
context 'supported operating systems' do

spec/classes/csf_install_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'spec_helper'
2-
require_relative '../facts.rb'
2+
require_relative '../facts'
33

44
describe 'csf::install' do
55
context 'supported operating systems' do

spec/defines/csf_config_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
context 'csf::config without parameters' do
1919
it 'fails' do
20-
expect { subject.call } .to raise_error(/Please set a value for/)
20+
expect { subject.call }.to raise_error(/Please set a value for/)
2121
end
2222
end
2323

spec/defines/csf_global_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
end
4040

4141
it 'fails' do
42-
expect { subject.call } .to raise_error(/unknown value wrong/)
42+
expect { subject.call }.to raise_error(/unknown value wrong/)
4343
end
4444
end
4545
end

0 commit comments

Comments
 (0)