gerrit: new package for server interactions
3 files changed
tree: 85dbbfc0e1ac95573d1e2444bf2370345cc4a750
  1. cmd/
  2. gerrit/
  3. .gitignore
  4. api.go
  5. CONTRIBUTING
  6. Dockerfile
  7. go.mod
  8. go.sum
  9. LICENSE
  10. README.md
  11. server.go
README.md

FMTSERVER

This is a style verifier intended to be used with the Gerrit checks plugin.

It consists of the following components

  • fmtserver: an RPC server that reformats source code. It is intended to be run in a Docker container that is secured with gvisor.

  • checker: a daemon that contacts gerrit, and sends pending changes to fmtserver to validate correct formatting

TODO

  • handle file types (symlink) and deletions

  • use the full checker API

  • more formatters: clang-format, typescript, jsformat, ... ?

  • isolate each formatter run with a separate gvisor/docker container?

DISCLAIMER

This is not an official Google product