Add comment referencing GH issue

https://github.com/platisd/clang-tidy-pr-comments/issues/37
This commit is contained in:
Jelle Spijker 2022-11-30 10:51:09 +01:00 committed by GitHub
parent dbc0ac1180
commit b011fc9561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,7 @@ class Definition(Linter):
redefined = re.compile(r'.*(\"' + key + r'\"[\s\:\S]*?)\{[\s\S]*?\},?')
found = redefined.search(self._content)
# TODO: Figure out a way to support multiline fixes in the PR review GH Action, for now suggest no fix to ensure no ill-formed json are created
# see: https://github.com/platisd/clang-tidy-pr-comments/issues/37
if len(found.group().splitlines()) > 1:
replacements = []
else: