Hi,
I'm not sure if this is already supported, but I'd like to achieve:
- For each revision, run some code analysis (e.g. clang-format, clang-tidy).
- Have bot (as a bot user) post findings as inline review comments on the patch.
Hi,
I'm not sure if this is already supported, but I'd like to achieve:
Have you looked at the existing lint support already?
The major advantage of lint over a bot is that it happens before code goes for review, so that patches generated by beautifiers like clang-tidy are incorporated locally. Reviewers never need to see unbeautified code or deal with inlines about formatting/style issues.
(Sorry I clicked submit too early)
Possible solutions I can think of:
I'm not sure what is the best way to trigger bots to run analysis on the second step: besides notifying bots via emails, is there a way to trigger bot analysis on each revision?
Thank you for such prompt reply!
I did looked into Arcanist's linter support, as you suggested.
The problem with this solution is that:
Here's the general shape of how to do this. Since we encourage synchronous pre-review lint to fill this role instead of asynchronous build-like processes, support is much rougher than support for lint.
The desired flow is:
In the best case, the --target flag for arc lint does not actually exist. Realistically, you'll have this kind of flow: