diff --git a/HACKING.md b/HACKING.md index 750e5f47..abfa86e8 100644 --- a/HACKING.md +++ b/HACKING.md @@ -19,8 +19,9 @@ The rules are mostly sorted in the alphabetical order. pkg: fix the network error logging issue ``` - Where `pkg` is the package where most changes took place. If there are - several such packages, or the change is top-level only, write `all`. + Where `pkg` is the directory or Go package (without the `internal/` part) + where most changes took place. If there are several such packages, or the + change is top-level only, write `all`. * Keep your commit messages, including headers, to eighty (**80**) columns. diff --git a/scripts/make/go-lint.sh b/scripts/make/go-lint.sh index 22a57616..417b6b57 100644 --- a/scripts/make/go-lint.sh +++ b/scripts/make/go-lint.sh @@ -116,10 +116,12 @@ nilness ./... # shadow --strict ./... # TODO(a.garipov): Enable errcheck fully after handling all errors, -# including the deferred ones, properly. Also, perhaps, enable --blank. +# including the deferred and generated ones, properly. Also, perhaps, +# enable --blank. +# # errcheck ./... exit_on_output sh -c ' - errcheck --asserts ./... |\ + errcheck --asserts --ignoregenerated ./... |\ { grep -e "defer" -e "_test\.go:" -v || exit 0; } '