Skip to content

Commit 5458867

Browse files
authored
prevent dead links (to tidy diagnostics pages) in thread comments & step summaries (#106)
resolves #105
1 parent 6ccb834 commit 5458867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp_linter/clang_tools/clang_tidy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def __init__(
8282
@property
8383
def diagnostic_link(self) -> str:
8484
"""Creates a markdown link to the diagnostic documentation."""
85+
if self.diagnostic.startswith("clang-diagnostic-"):
86+
return self.diagnostic
8587
link = f"[{self.diagnostic}](https://clang.llvm.org/extra/clang-tidy/checks/"
8688
return link + "{}/{}.html)".format(*self.diagnostic.split("-", maxsplit=1))
8789

0 commit comments

Comments
 (0)