Skip to content

Commit 9582417

Browse files
(PUP-11767) Correct ClassMethod infractions and remove for todo
1 parent 09e06fb commit 9582417

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
@@ -357,11 +357,6 @@ Style/CaseEquality:
357357
Style/ClassAndModuleChildren:
358358
Enabled: false
359359

360-
# This cop supports safe auto-correction (--auto-correct).
361-
Style/ClassMethods:
362-
Exclude:
363-
- 'lib/puppet/util/rdoc/generators/puppet_generator.rb'
364-
365360
Style/ClassVars:
366361
Enabled: false
367362

lib/puppet/util/rdoc/generators/puppet_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def new_markup(str, remove_para = false)
5252

5353
# This is a specialized HTMLGenerator tailored to Puppet manifests
5454
class PuppetGenerator < HTMLGenerator
55-
def PuppetGenerator.for(options)
55+
def self.for(options)
5656
AllReferences.reset
5757
HtmlMethod.reset
5858

0 commit comments

Comments
 (0)