Skip to content

Commit eeac9b5

Browse files
committed
(PUP-11993) Style/VariableInterpolation
This commit enables the Style/VariableInterpolation cop and fixes 1 autocorrectable offense.
1 parent 3d7c9c5 commit eeac9b5

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -762,12 +762,6 @@ Style/TrailingUnderscoreVariable:
762762
Style/TrivialAccessors:
763763
Enabled: false
764764

765-
# This cop supports safe auto-correction (--auto-correct).
766-
Style/VariableInterpolation:
767-
Exclude:
768-
- 'lib/puppet/util/command_line/trollop.rb'
769-
- 'lib/puppet/util/rdoc/generators/puppet_generator.rb'
770-
771765
# This cop supports safe auto-correction (--auto-correct).
772766
Style/WhenThen:
773767
Enabled: false

lib/puppet/util/command_line/trollop.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def educate stream = $stdout
491491
rightcol_start = leftcol_width + 6 # spaces
492492

493493
unless @order.size > 0 && @order.first.first == :text
494-
stream.puts "#@version\n" if @version
494+
stream.puts "#{@version}\n" if @version
495495
stream.puts _("Options:")
496496
end
497497

0 commit comments

Comments
 (0)