lint: fix issues in examples (#49)

This commit is contained in:
Michael McLoughlin
2019-01-13 10:12:52 -08:00
parent 943d5f0ced
commit 4aa8656eb0
11 changed files with 22 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ post=$(go list ./... | grep -E 'avo/(examples|tests)')
go install ./internal/cmd/avogen
# Attempt to delete generated files, to prove we can recreate them.
grep -REl 'Code generated.*DO NOT EDIT\.$' . | grep -v '.md$' | xargs rm -v
grep -RE '^// Code generated.*DO NOT EDIT\.$' . | grep -v download | cut -d: -f1 | grep -v '.md$' | xargs rm -v
# Generate once.
go generate -v -x ${core}