diff --git a/.rubocop.yml b/.rubocop.yml index 4ad704e2..6d831a74 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -154,3 +154,7 @@ Naming/UncommunicativeMethodParamName: - id - is ForbiddenNames: [] + +# This cop breaks syntax highlighting in VSCode +Layout/ClosingHeredocIndentation: + Enabled: false \ No newline at end of file diff --git a/lib/puppet/resource_api.rb b/lib/puppet/resource_api.rb index 2cf05395..e0e2a9b7 100644 --- a/lib/puppet/resource_api.rb +++ b/lib/puppet/resource_api.rb @@ -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) @@ -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