Skip to content

Commit

Permalink
Autocorrect Style/SuperArguments
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Didrichsen <[email protected]>
  • Loading branch information
gavindidrichsen committed Jun 17, 2024
1 parent 9c1cae2 commit ab48c7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ Style/RedundantParentheses:
# Exclude:
# - 'contrib/pre-commit'

# HACK for jruby
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/SuperArguments:
Exclude:
- 'lib/puppet/resource_api.rb'
- 'lib/puppet/resource_api/type_definition.rb'
# Style/SuperArguments:
# Exclude:
# - 'lib/puppet/resource_api.rb'
# - 'lib/puppet/resource_api/type_definition.rb'
2 changes: 1 addition & 1 deletion lib/puppet/resource_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def initialize(attributes)
attributes[:title] = @title if attributes[:title].nil? && !type_definition.namevars.empty?
end

super(attributes)
super
end

def name
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/resource_api/type_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def title_patterns
end

def validate_schema(definition, attr_key)
super(definition, attr_key)
super
%i[title provider alias audit before consume export loglevel noop notify require schedule stage subscribe tag].each do |name|
raise Puppet::DevError, format('must not define an attribute called `%<name>s`', name: name.inspect) if definition[attr_key].key? name
end
Expand Down

0 comments on commit ab48c7e

Please sign in to comment.