Skip to content

Commit 9a1fe32

Browse files
committed
(PUP-11993) Style/SymbolLiteral
This commit enables the Style/SymbolLiteral cop and fixes 1 autocorrectable offense.
1 parent 0cc6f84 commit 9a1fe32

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/SymbolArray:
729729
Enabled: false
730730

731-
# This cop supports safe auto-correction (--auto-correct).
732-
Style/SymbolLiteral:
733-
Exclude:
734-
- 'lib/puppet/functions/defined.rb'
735-
736731
# This cop supports unsafe auto-correction (--auto-correct-all).
737732
# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods, AllowComments.
738733
# IgnoredMethods: respond_to, define_method

lib/puppet/functions/defined.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
# @since 3.8.1 type specific requests with future parser
102102
# @since 4.0.0
103103
#
104-
Puppet::Functions.create_function(:'defined', Puppet::Functions::InternalFunction) do
104+
Puppet::Functions.create_function(:defined, Puppet::Functions::InternalFunction) do
105105
dispatch :is_defined do
106106
scope_param
107107
required_repeated_param 'Variant[String, Type[CatalogEntry], Type[Type[CatalogEntry]]]', :vals

0 commit comments

Comments
 (0)