File tree Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -652,17 +652,6 @@ Lint/InheritException:
652
652
- ' lib/puppet/util/logging.rb'
653
653
- ' lib/puppet/util/retry_action.rb'
654
654
655
- # This cop supports unsafe auto-correction (--auto-correct-all).
656
- Lint/InterpolationCheck :
657
- Exclude :
658
- - ' lib/puppet/util/package/version/pip.rb'
659
-
660
- # This cop supports safe auto-correction (--auto-correct).
661
- Lint/LiteralInInterpolation :
662
- Exclude :
663
- - ' lib/puppet/provider/package/yum.rb'
664
- - ' lib/puppet/type/component.rb'
665
-
666
655
Lint/MissingSuper :
667
656
Enabled : false
668
657
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ def install
255
255
operation = update_command
256
256
self . debug "Ensuring latest, so using #{ operation } "
257
257
else
258
- self . debug "Ensuring latest, but package is absent, so using #{ : install} "
258
+ self . debug "Ensuring latest, but package is absent, so using install"
259
259
operation = :install
260
260
end
261
261
should = nil
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def refresh
63
63
catalog . adjacent ( self ) . each do |child |
64
64
if child . respond_to? ( :refresh )
65
65
child . refresh
66
- child . log "triggering #{ : refresh} "
66
+ child . log "triggering refresh"
67
67
end
68
68
end
69
69
end
Original file line number Diff line number Diff line change @@ -149,10 +149,10 @@ def compare(this, other)
149
149
return compare ( element , other . at ( index ) ) if element != other . at ( index )
150
150
end
151
151
elsif ( this . is_a? Array ) && !( other . is_a? Array )
152
- raise Puppet ::Error , ' Cannot compare #{this} (Array) with #{other} (#{other.class}). Only ±Float::INFINITY accepted.' unless other . abs == Float ::INFINITY
152
+ raise Puppet ::Error , " Cannot compare #{ this } (Array) with #{ other } (#{ other . class } ). Only ±Float::INFINITY accepted." unless other . abs == Float ::INFINITY
153
153
return other == -Float ::INFINITY ? 1 : -1
154
154
elsif !( this . is_a? Array ) && ( other . is_a? Array )
155
- raise Puppet ::Error , ' Cannot compare #{this} (#{this.class}) with #{other} (Array). Only ±Float::INFINITY accepted.' unless this . abs == Float ::INFINITY
155
+ raise Puppet ::Error , " Cannot compare #{ this } (#{ this . class } ) with #{ other } (Array). Only ±Float::INFINITY accepted." unless this . abs == Float ::INFINITY
156
156
return this == -Float ::INFINITY ? -1 : 1
157
157
end
158
158
this <=> other
You can’t perform that action at this time.
0 commit comments