Skip to content

Commit 902cc7f

Browse files
author
jordanbreen28
committed
(CONT-792) - Correct Style/MixinUsage
1 parent b141749 commit 902cc7f

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,6 @@ Style/ClassAndModuleChildren:
160160
Exclude:
161161
- 'lib/puppet/util/postgresql_validator.rb'
162162

163-
164-
# Offense count: 2
165-
Style/MixinUsage:
166-
Exclude:
167-
- 'spec/spec_helper.rb'
168-
- 'spec/spec_helper_local.rb'
169-
170163
# Offense count: 5
171164
# This cop supports unsafe autocorrection (--autocorrect-all).
172165
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.

spec/spec_helper.rb

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

1010
require 'spec_helper_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_local.rb'))
1111

12-
include RspecPuppetFacts
12+
include RspecPuppetFacts # rubocop:disable Style/MixinUsage
1313

1414
default_facts = {
1515
puppetversion: Puppet.version,

spec/spec_helper_local.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def param(type, title, param)
101101
end
102102

103103
# This duplicates spec_helper but we need it for add_custom_fact
104-
include RspecPuppetFacts
104+
include RspecPuppetFacts # rubocop:disable Style/MixinUsage
105105
# Rough conversion of grepping in the puppet source:
106106
# grep defaultfor lib/puppet/provider/service/*.rb
107107
# See https://github.com/voxpupuli/voxpupuli-test/blob/master/lib/voxpupuli/test/facts.rb

0 commit comments

Comments
 (0)