diff options
| author | Xiang Dai <764524258@qq.com> | 2020-05-08 09:44:25 +0800 |
|---|---|---|
| committer | Xiang Dai <764524258@qq.com> | 2020-05-09 11:42:11 +0800 |
| commit | a853438d27e6eec5c4dda456aa419a20fda22e36 (patch) | |
| tree | 1a84d00f74b824525673874e8415967ece17dd7d /hack/lib/lint.sh | |
| parent | adjust no-phony target (diff) | |
| download | kubeedge-a853438d27e6eec5c4dda456aa419a20fda22e36.tar.gz | |
use golangci misspell linter
Skip golint linter, and enable in another PR.
Signed-off-by: Xiang Dai <764524258@qq.com>
Diffstat (limited to 'hack/lib/lint.sh')
| -rw-r--r-- | hack/lib/lint.sh | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/hack/lib/lint.sh b/hack/lib/lint.sh index 0a5066f04..0c9af2961 100644 --- a/hack/lib/lint.sh +++ b/hack/lib/lint.sh @@ -24,9 +24,8 @@ kubeedge::lint::cloud_lint() { ( echo "lint cloud" cd ${KUBEEDGE_ROOT}/cloud - golangci-lint run --skip-dirs 'pkg/client' --disable-all -E golint --deadline '10m' ./... + golangci-lint run go vet ./... - find . -type f | grep -v vendor/ | grep -vE '\./\..*' | xargs misspell -error ) } @@ -34,10 +33,8 @@ kubeedge::lint::edge_lint() { ( echo "lint edge" cd ${KUBEEDGE_ROOT}/edge - golangci-lint run --disable-all -E golint -E misspell --deadline '10m' ./... + golangci-lint run go vet ./... - # ignore mosquitto since it is a deb pkg name - find . -type f | grep -v vendor/ | grep -vE '\./\..*' | xargs misspell -i "mosquitto" -error ) } @@ -45,10 +42,8 @@ kubeedge::lint::keadm_lint() { ( echo "lint keadm" cd ${KUBEEDGE_ROOT}/keadm - golangci-lint run --deadline '10m' --disable-all -E golint ./... + golangci-lint run go vet ./... - # ignore mosquitto since it is a deb pkg name - find . -type f | grep -v vendor/ | grep -vE '\./\..*' | xargs misspell -i "mosquitto" -error ) } @@ -56,9 +51,8 @@ kubeedge::lint::bluetoothdevice_lint() { ( echo "lint bluetoothdevice" cd ${KUBEEDGE_ROOT}/mappers/bluetooth_mapper - golangci-lint run --disable-all -E golint --deadline '10m' ./... + golangci-lint run go vet ./... - find . -type f | grep -v vendor/ | grep -vE '\./\..*' | xargs misspell -error ) } @@ -66,10 +60,8 @@ kubeedge::lint::global_lint() { ( echo "checking gofmt repo-wide" cd ${KUBEEDGE_ROOT} - golangci-lint run --disable-all -E gofmt --deadline '10m' ./... + golangci-lint run go vet ./... - # ignore mosquitto since it is a deb pkg name - find . -type f | grep -v vendor/ | grep -vE '\./\..*' | xargs misspell -i "mosquitto" -error ) } |
