================
@@ -105,10 +105,20 @@ def pr_comment_text_for_diff(
</details>
"""
+ # TODO: Refactor this
def find_comment(self, pr: any) -> any:
+ all_linter_names = [l.name for l in ALL_LINTERS]
----------------
EugeneZelenko wrote:
```suggestion
all_linter_names = list(map(attrgetter(name), ALL_LINTERS))
```
`attrgetter` from `operator`.
https://github.com/llvm/llvm-project/pull/168827
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits