mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: add naked return checks
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
0b03d22b5b
commit
65a606e2e8
11
test
11
test
@ -403,6 +403,17 @@ function fmt_pass {
|
||||
echo "Skipping ineffassign..."
|
||||
fi
|
||||
|
||||
if which nakedret >/dev/null; then
|
||||
echo "Checking nakedret..."
|
||||
nakedretResult=$(nakedret "${STATIC_ANALYSIS_PATHS[@]}" 2>&1 || true)
|
||||
if [ -n "${nakedretResult}" ]; then
|
||||
echo -e "nakedret checking failed:\n${nakedretResult}"
|
||||
exit 255
|
||||
fi
|
||||
else
|
||||
echo "Skipping nakedret..."
|
||||
fi
|
||||
|
||||
echo "Checking for license header..."
|
||||
licRes=""
|
||||
files=$(find . -type f -iname '*.go' ! -path './cmd/*' ! -path './gopath.proto/*')
|
||||
|
Loading…
x
Reference in New Issue
Block a user