summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rubocop.yml5
-rw-r--r--lib/chef/util/dsc/configuration_generator.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index eb41ed78fa..a02da9fa32 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -22,6 +22,11 @@ Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/IneffectiveAccessModifier:
Enabled: false
+Lint/InterpolationCheck:
+ Enabled: true
+ Exclude:
+ - 'spec/unit/property_spec.rb'
+ - 'spec/functional/shell_spec.rb'
# set additional paths
Chef/Ruby/UnlessDefinedRequire:
diff --git a/lib/chef/util/dsc/configuration_generator.rb b/lib/chef/util/dsc/configuration_generator.rb
index 7785dc3990..8ca6249a9d 100644
--- a/lib/chef/util/dsc/configuration_generator.rb
+++ b/lib/chef/util/dsc/configuration_generator.rb
@@ -106,7 +106,7 @@ class Chef::Util::DSC
# The name may not be null or empty, and should start with a letter.
def validate_configuration_name!(configuration_name)
if !!(configuration_name =~ /\A[A-Za-z]+[_a-zA-Z0-9]*\Z/) == false
- raise ArgumentError, 'Configuration `#{configuration_name}` is not a valid PowerShell cmdlet name'
+ raise ArgumentError, "Configuration `#{configuration_name}` is not a valid PowerShell cmdlet name"
end
end