Skip to content

Commit

Permalink
(PUP-11993) Style/StructInheritance
Browse files Browse the repository at this point in the history
This commit enables the Style/StructInheritance cop and fixes 5
autocorrectable offenses.
  • Loading branch information
AriaXLi committed Mar 8, 2024
1 parent e08ba15 commit 1af46d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -728,11 +728,6 @@ Style/StringLiterals:
Style/StringLiteralsInInterpolation:
Enabled: false

# This cop supports safe auto-correction (--auto-correct).
Style/StructInheritance:
Exclude:
- 'lib/puppet/settings.rb'

# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, MinSize.
# SupportedStyles: percent, brackets
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def reuse
use(*new)
end

class SearchPathElement < Struct.new(:name, :type); end
SearchPathElement = Struct.new(:name, :type)

# The order in which to search for values, without defaults.
#
Expand Down

0 comments on commit 1af46d8

Please sign in to comment.