We have a GitHub Actions comment bot to fix linting issues on PRs. Unfortunately there are some issues with it, but you can try it, or you can do locally what it does: https://github.com/apache/arrow/blob/master/.github/workflows/comment_bot.yml#L96-L100
Requires clang-format-8. Neal On Thu, Jul 16, 2020 at 12:14 PM Patrick Pai <p...@drwholdings.com> wrote: > I've written some cpp code and I want to autoformat it so that lint checks > pass. I saw the 'clang-format' service on > https://arrow.apache.org/docs/developers/integration.html but this doc > seems outdated - I can only find the service 'ubuntu-lint' in my > docker-compose.yml > > I tried the following series of commands: > docker-compose build ubuntu-cpp > docker-compose build ubuntu-lint > docker-compose run ubuntu-lint > > The third command points out which files (and specific lines) have > clang-format style issues but it doesn't actually fix the files. How can I > automatically fix any style issues in my cpp code? > This e-mail and any attachments may contain information that is > confidential and proprietary and otherwise protected from disclosure. If > you are not the intended recipient of this e-mail, do not read, duplicate > or redistribute it by any means. Please immediately delete it and any > attachments and notify the sender that you have received it by mistake. > Unintended recipients are prohibited from taking action on the basis of > information in this e-mail or any attachments. The DRW Companies make no > representations that this e-mail or any attachments are free of computer > viruses or other defects. >