Skip to content

Commit 6718f5b

Browse files
Ignore the rubocop Naming/MethodName violation.
Signed-off-by: Gavin Didrichsen <[email protected]>
1 parent 674e8f5 commit 6718f5b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ def literal(ast)
143143
@literal_visitor.visit_this_0(self, ast)
144144
end
145145

146+
# TODO: Fix the rubocop violations in this file between the following rubocop:disable/enable lines
147+
# rubocop:disable Naming/MethodName
146148
# ----- The following methods are different/additions from the original Literal_evaluator
147149
def literal_Object(o)
148150
# Ignore any other object types
@@ -214,6 +216,7 @@ def literal_LiteralHash(o)
214216
result[literal(entry.key)] = literal(entry.value)
215217
end
216218
end
219+
# rubocop:enable Naming/MethodName
217220
end
218221

219222
# Extracts the datatype attributes from a Puppet Data Type interface hash.

lib/puppet-strings/yard/parsers/puppet/parser.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def enumerator
4040

4141
private
4242

43+
# TODO: Fix the rubocop violations in this file between the following rubocop:disable/enable lines
44+
# rubocop:disable Naming/MethodName
4345
def transform_Program(o)
4446
# Cache the lines of the source text; we'll use this to locate comments
4547
@lines = o.source_text.lines.to_a
@@ -83,4 +85,5 @@ def transform_TypeAlias(o)
8385
def transform_Object(o)
8486
# Ignore anything else (will be compacted out of the resulting array)
8587
end
88+
# rubocop:enable Naming/MethodName
8689
end

0 commit comments

Comments
 (0)