Skip to content

Commit

Permalink
Fix typo in documentation group tags
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Feb 12, 2024
1 parent 8ff27da commit 8756fb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/danger/helpers/comments_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def markdown_parser(text)
Kramdown::Document.new(text, input: "GFM", smart_quotes: %w(apos apos quot quot))
end

# !@group Extension points
# @!group Extension points
# Produces a markdown link to the file the message points to
#
# request_source implementations are invited to override this method with their
Expand All @@ -30,7 +30,7 @@ def markdown_link_to_message(message, hide_link)
"#{message.file}#L#{message.line}"
end

# !@group Extension points
# @!group Extension points
# Determine whether two messages are equivalent
#
# request_source implementations are invited to override this method.
Expand All @@ -46,6 +46,8 @@ def messages_are_equivalent(m1, m2)
m1 == m2
end

# @endgroup

def process_markdown(violation, hide_link = false)
message = violation.message
message = "#{markdown_link_to_message(violation, hide_link)}#{message}" if violation.file && violation.line
Expand Down
4 changes: 3 additions & 1 deletion lib/danger/helpers/comments_parsing_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Danger
module Helpers
module CommentsParsingHelper
# !@group Extension points
# @!group Extension points
# Produces a message-like from a row in a comment table
#
# @param [String] row
Expand All @@ -12,6 +12,8 @@ def parse_message_from_row(row)
Violation.new(row, true)
end

# @endgroup

def parse_tables_from_comment(comment)
comment.split("</table>")
end
Expand Down

0 comments on commit 8756fb9

Please sign in to comment.