api: protos now pass lint checks
Generation is likely broken, but the Makefile linter now passes. Another pass will have a fully working toolchain. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
2507ee35bb
commit
4d1a30ff41
3 changed files with 87 additions and 87 deletions
2
Makefile
2
Makefile
|
@ -66,7 +66,7 @@ fmt: ## run go fmt
|
|||
(echo "👹 please format Go code with 'gofmt -s -w'" && false)
|
||||
@test -z "$$(find . -path ./vendor -prune -o ! -name timestamp.proto ! -name duration.proto -name '*.proto' -type f -exec grep -Hn -e "^ " {} \; | tee /dev/stderr)" || \
|
||||
(echo "👹 please indent proto files with tabs only" && false)
|
||||
@test -z "$$(find . -path ./vendor -prune -o -name '*.proto' -type f -exec grep -Hn "id = " {} \; | grep -v gogoproto.customname | tee /dev/stderr)" || \
|
||||
@test -z "$$(find . -path ./vendor -prune -o -name '*.proto' -type f -exec grep -EHn "[_ ]id = " {} \; | grep -v gogoproto.customname | tee /dev/stderr)" || \
|
||||
(echo "👹 id fields in proto files must have a gogoproto.customname set" && false)
|
||||
@test -z "$$(find . -path ./vendor -prune -o -name '*.proto' -type f -exec grep -Hn "Meta meta = " {} \; | grep -v '(gogoproto.nullable) = false' | tee /dev/stderr)" || \
|
||||
(echo "👹 meta fields in proto files must have option (gogoproto.nullable) = false" && false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue