Open saser opened 3 years ago
Code should be checked using mvdan.cc/gofumpt/gofumports. The command should be something like gofumports -l . | grep -v '^api' to 1) list files with errors in their formatting and 2) ignore generated protobuf code.
mvdan.cc/gofumpt/gofumports
gofumports -l . | grep -v '^api'
A better grep command is probably ... | grep -v '\.pb\.go', which more accurately matches generated protobuf code.
... | grep -v '\.pb\.go'
Code should be checked using
mvdan.cc/gofumpt/gofumports
. The command should be something likegofumports -l . | grep -v '^api'
to 1) list files with errors in their formatting and 2) ignore generated protobuf code.