mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: enable static analysis "SA4004"
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
4bab1e1be2
commit
cdadc4638d
2
test
2
test
@ -473,7 +473,7 @@ function staticcheck_pass {
|
|||||||
if [ -n "${staticcheckResult}" ]; then
|
if [ -n "${staticcheckResult}" ]; then
|
||||||
# TODO: resolve these after go1.8 migration
|
# TODO: resolve these after go1.8 migration
|
||||||
# See https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck
|
# See https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck
|
||||||
STATIC_CHECK_MASK="SA(1012|1019|2002|4004)"
|
STATIC_CHECK_MASK="SA(1012|1019|2002)"
|
||||||
if echo "${staticcheckResult}" | grep -vE "$STATIC_CHECK_MASK"; then
|
if echo "${staticcheckResult}" | grep -vE "$STATIC_CHECK_MASK"; then
|
||||||
echo -e "staticcheck checking failed:\\n${staticcheckResult}"
|
echo -e "staticcheck checking failed:\\n${staticcheckResult}"
|
||||||
exit 255
|
exit 255
|
||||||
|
Loading…
x
Reference in New Issue
Block a user