Pull request: scripts: ignore unchecked errors in generated code
Merge in DNS/adguard-home from fix-errcheck to master Squashed commit of the following: commit 1cc4e12c1d49612046ce6f0a1b56920ffcad2526 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Jan 11 15:28:42 2021 +0300 scripts: ignore unchecked errors in generated code
This commit is contained in:
@@ -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; }
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user