Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appease rubocop 0.57.0 #90

Merged
merged 1 commit into from
Jun 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,7 @@ Naming/UncommunicativeMethodParamName:
- id
- is
ForbiddenNames: []

# This cop breaks syntax highlighting in VSCode
Layout/ClosingHeredocIndentation:
Enabled: false
4 changes: 2 additions & 2 deletions lib/puppet/resource_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def self.parse_title_patterns(patterns)
end
end
end
module_function :register_type
module_function :register_type # rubocop:disable Style/AccessModifierDeclarations

def load_provider(type_name)
class_name = class_name_from_type_name(type_name)
Expand All @@ -460,7 +460,7 @@ def load_provider(type_name)
rescue NameError
raise Puppet::DevError, "class #{class_name} not found in puppet/provider/#{type_name}/#{type_name}"
end
module_function :load_provider
module_function :load_provider # rubocop:disable Style/AccessModifierDeclarations

def self.class_name_from_type_name(type_name)
type_name.to_s.split('_').map(&:capitalize).join
Expand Down