Skip to content

Commit

Permalink
Ignore the rubocop Naming/MethodName violation.
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Didrichsen <[email protected]>
  • Loading branch information
gavindidrichsen committed Sep 12, 2023
1 parent 674e8f5 commit 6718f5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def literal(ast)
@literal_visitor.visit_this_0(self, ast)
end

# TODO: Fix the rubocop violations in this file between the following rubocop:disable/enable lines
# rubocop:disable Naming/MethodName
# ----- The following methods are different/additions from the original Literal_evaluator
def literal_Object(o)
# Ignore any other object types
Expand Down Expand Up @@ -214,6 +216,7 @@ def literal_LiteralHash(o)
result[literal(entry.key)] = literal(entry.value)
end
end
# rubocop:enable Naming/MethodName
end

# Extracts the datatype attributes from a Puppet Data Type interface hash.
Expand Down
3 changes: 3 additions & 0 deletions lib/puppet-strings/yard/parsers/puppet/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def enumerator

private

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

0 comments on commit 6718f5b

Please sign in to comment.