Skip to content

Commit 7484220

Browse files
committed
Lint/UselessAccessModifier
The module specifies 'module_function' at the beginning so it doesn't need to be repeated. Also all of the functions are private when included in a class.
1 parent 0e66370 commit 7484220

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,6 @@ Lint/ToJSON:
643643
Lint/UnusedMethodArgument:
644644
Enabled: false
645645

646-
# This cop supports safe auto-correction (--auto-correct).
647-
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
648-
Lint/UselessAccessModifier:
649-
Exclude:
650-
- 'lib/hiera_puppet.rb'
651-
652646
# This cop supports unsafe auto-correction (--auto-correct-all).
653647
Lint/UselessMethodDefinition:
654648
Exclude:

lib/hiera_puppet.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ def parse_args(args)
4949
return [key, default, override]
5050
end
5151

52-
private
53-
module_function
54-
5552
def hiera
5653
@hiera ||= Hiera.new(:config => hiera_config)
5754
end

0 commit comments

Comments
 (0)