Skip to content

Commit 1af46d8

Browse files
committed
(PUP-11993) Style/StructInheritance
This commit enables the Style/StructInheritance cop and fixes 5 autocorrectable offenses.
1 parent e08ba15 commit 1af46d8

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,6 @@ Style/StringLiterals:
728728
Style/StringLiteralsInInterpolation:
729729
Enabled: false
730730

731-
# This cop supports safe auto-correction (--auto-correct).
732-
Style/StructInheritance:
733-
Exclude:
734-
- 'lib/puppet/settings.rb'
735-
736731
# This cop supports safe auto-correction (--auto-correct).
737732
# Configuration parameters: EnforcedStyle, MinSize.
738733
# SupportedStyles: percent, brackets

lib/puppet/settings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def reuse
841841
use(*new)
842842
end
843843

844-
class SearchPathElement < Struct.new(:name, :type); end
844+
SearchPathElement = Struct.new(:name, :type)
845845

846846
# The order in which to search for values, without defaults.
847847
#

0 commit comments

Comments
 (0)