in bot/code_review_bot/tasks/clang_tidy_external.py [0:0]
def as_markdown(self):
return ISSUE_MARKDOWN.format(
level=self.level.value,
message=self.message,
location=f"{self.path}:{self.line}:{self.column}",
reason=self.reason,
check=self.check,
in_patch="yes" if self.revision.contains(self) else "no",
publishable_check="yes" if self.has_publishable_check() else "no",
publishable="yes" if self.is_publishable() else "no",
expanded_macro="yes" if self.is_expanded_macro() else "no",
reliability=self.reliability.value,
notes="\n".join(
[
ISSUE_NOTE_MARKDOWN.format(
message=n.message,
location=f"{n.path}:{n.line}:{n.column}",
body=n.body,
)
for n in self.notes
]
),
)