Documentation
¶
Index ¶
Constants ¶
const BodyPrefix = `<sub>reported by [reviewdog](https://github.com/androidjp/reviewdog) :dog:</sub><br>`
BodyPrefix is prefix text of comment body.
Variables ¶
This section is empty.
Functions ¶
func GetCodeFenceLength ¶
GetCodeFenceLength returns the length of a code fence needed to wrap code. A test suggestion that uses four backticks w/o code fence block. Fixes: https://github.com/androidjp/reviewdog/issues/999
Code fenced blocks are supported by GitHub Flavor Markdown. A code fence is typically three backticks.
``` code ```
However, we sometimes need more backticks. https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks
> To display triple backticks in a fenced code block, wrap them inside quadruple backticks. > > ```` > ``` > Look! You can see my backticks. > ``` > ````
func MarkdownComment ¶
MarkdownComment creates comment body markdown.
Types ¶
type PostedComments ¶
`path` to `position`(Lnum for new file) to comment `body`s
func (PostedComments) AddPostedComment ¶
func (p PostedComments) AddPostedComment(path string, lineNum int, body string)
AddPostedComment adds a posted comment.
func (PostedComments) DebugLog ¶
func (p PostedComments) DebugLog()
DebugLog outputs posted comments as log for debugging.