Skip to content

Commit

Permalink
(CONT-792) - Correct Style/MixinUsage
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent b141749 commit 902cc7f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,6 @@ Style/ClassAndModuleChildren:
Exclude:
- 'lib/puppet/util/postgresql_validator.rb'


# Offense count: 2
Style/MixinUsage:
Exclude:
- 'spec/spec_helper.rb'
- 'spec/spec_helper_local.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

include RspecPuppetFacts
include RspecPuppetFacts # rubocop:disable Style/MixinUsage

default_facts = {
puppetversion: Puppet.version,
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def param(type, title, param)
end

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

0 comments on commit 902cc7f

Please sign in to comment.