saser / strecku

0 stars 0 forks source link

Check code formatting in CI #6

Open saser opened 3 years ago

saser commented 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.

saser commented 3 years ago

A better grep command is probably ... | grep -v '\.pb\.go', which more accurately matches generated protobuf code.