summaryrefslogtreecommitdiff
path: root/edge/hack
diff options
context:
space:
mode:
authorZiyi Yan <ziyi.yan@foxmail.com>2019-08-10 14:00:58 +0800
committerZiyi Yan <ziyi.yan@foxmail.com>2019-08-10 16:27:49 +0800
commit94a07418568e9568f750d1c819bc62fe4c93b724 (patch)
treeca0f489ee652052a0495d3c7a54dd8dd38f0de11 /edge/hack
parentMerge pull request #1002 from kubeedge/fisherxu-patch-1 (diff)
downloadkubeedge-94a07418568e9568f750d1c819bc62fe4c93b724.tar.gz
edge: use golangci-lint for edge_lint
For the consistency with other commands, such as cloud_lint and keadm_lint, this PR changes Makefile command `edge_verify` to `edge_lint` and call `golangci-lint` directly. So, edge/hack/verify.sh is no longer being used and deleted.
Diffstat (limited to 'edge/hack')
-rw-r--r--edge/hack/verify.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/edge/hack/verify.sh b/edge/hack/verify.sh
deleted file mode 100644
index ed414ec4f..000000000
--- a/edge/hack/verify.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright 2018 The KubeEdge Authors.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# get gometalinter(https://github.com/alecthomas/gometalinter)
-
-curl -L https://git.io/vp6lP | sh
-export PATH=${PATH}:${GOPATH}/bin:${GOPATH}/src/github.com/kubeedge/kubeedge/edge/bin
-
-gometalinter --disable-all --enable=gofmt --enable=misspell --enable=golint --exclude=vendor --exclude=test ./...
-if [ $? != 0 ]; then
- echo "Please fix the warnings!"
- echo "Run hack/update-gofmt.sh if any warnings in gofmt"
- exit 1
-else
-echo "Gofmt,misspell,golint checks have been passed"
-fi