Skip to content

Commit

Permalink
Merge pull request #306 from vinzent/rubocop_updates
Browse files Browse the repository at this point in the history
Rubocop updates
  • Loading branch information
bastelfreak authored Jan 17, 2017
2 parents d397dfc + 4bfd9ac commit 5216bdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions moduleroot/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Style/WhileUntilModifier:
Lint/AmbiguousRegexpLiteral:
Enabled: True

Lint/Eval:
Security/Eval:
Enabled: True

Lint/BlockAlignment:
Expand Down Expand Up @@ -307,7 +307,7 @@ Style/EmptyLiteral:
Metrics/LineLength:
Enabled: False

Style/MethodCallParentheses:
Style/MethodCallWithoutArgsParentheses:
Enabled: True

Style/MethodDefParentheses:
Expand Down
4 changes: 2 additions & 2 deletions moduleroot/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
puppetversion: Puppet.version,
facterversion: Facter.version
}
default_facts.merge!(YAML.load(File.read(File.expand_path('../default_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_facts.yml', __FILE__))
default_facts.merge!(YAML.load(File.read(File.expand_path('../default_module_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_module_facts.yml', __FILE__))
default_facts.merge!(YAML.safe_load(File.read(File.expand_path('../default_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_facts.yml', __FILE__))
default_facts.merge!(YAML.safe_load(File.read(File.expand_path('../default_module_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_module_facts.yml', __FILE__))
c.default_facts = default_facts
<%- if @configs['mock_with'] -%>
c.mock_with <%= @configs['mock_with'] %>
Expand Down

0 comments on commit 5216bdd

Please sign in to comment.