def as_markdown_for_phab()

in bot/code_review_bot/tasks/clang_tidy_external.py [0:0]


    def as_markdown_for_phab(self):
        # skip not in patch or not publishable
        if not self.revision.contains(self) or not self.is_publishable():
            return ""

        return ISSUE_MARKDOWN.format(
            level=self.level.value,
            message=self.message,
            location=f"{self.path}:{self.line}:{self.column}",
            check=self.check,
            expanded_macro="yes" if self.is_expanded_macro() else "no",
            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
                ]
            ),
        )