From 06e91cee75608b13871ede582ce2c1cfa1a9d85a Mon Sep 17 00:00:00 2001 From: zhouzhuojie Date: Sun, 15 Aug 2021 01:52:35 -0700 Subject: [PATCH] Lint with shellcheck and remove gometalinter --- .gitignore | 1 + .gometalinter.json | 22 -- integration_tests/test.sh | 462 ++++++++++++++++++-------------------- 3 files changed, 224 insertions(+), 261 deletions(-) delete mode 100644 .gometalinter.json diff --git a/.gitignore b/.gitignore index 7a18dbe7..178b86d8 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ _tools/ _data coverage.txt /vendor +.history diff --git a/.gometalinter.json b/.gometalinter.json deleted file mode 100644 index 5facd9c4..00000000 --- a/.gometalinter.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vendor": true, - "Deadline": "2m", - "Sort": ["linter", "severity", "path", "line"], - "Exclude": [ - "pkg/entity/autogenerated_.*" - ], - "EnableGC": true, - "Disable": [], - "Enable": [ - "deadcode", - "gocyclo", - "gofmt", - "goimports", - "golint", - "ineffassign", - "misspell", - "vet" - ], - "Cyclo": 15, - "LineLength": 200 -} diff --git a/integration_tests/test.sh b/integration_tests/test.sh index 98c6e60a..f454d84a 100644 --- a/integration_tests/test.sh +++ b/integration_tests/test.sh @@ -1,22 +1,21 @@ #!/bin/bash + +# shellcheck disable=SC1091 source /vendor/shakedown/shakedown.sh -uuid_str() -{ - cat /dev/urandom | tr -dc 'a-z' | fold -w 16 | head -n 1 +uuid_str() { + tr