]> source.dussan.org Git - gitea.git/commitdiff
Update golangci-lint to v1.17.1 (#7848)
authortechknowlogick <techknowlogick@gitea.io>
Wed, 14 Aug 2019 03:32:38 +0000 (23:32 -0400)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2019 03:32:38 +0000 (23:32 -0400)
.golangci.yml
Makefile

index 82d0e46694e1dacc5fa9bc90bb86241ad6e48184..bee342dd75a77d11194c00b4e43abd17af1a0fc1 100644 (file)
@@ -95,3 +95,6 @@ issues:
       linters:
         - misspell
       text: '`Destory` is a misspelling of `Destroy`'
+    - linters:
+        - misspell
+      text: '`Unknwon` is a misspelling of `Unknown`'
index 3d81ebe606dffe2c0fc7828711dba969479a6cca..de2692d6a8e7d88754d2ba1bcd1ec58cb54623fd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -473,6 +473,6 @@ pr:
 golangci-lint:
        @hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
                export BINARY="golangci-lint"; \
-               curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.16.0; \
+               curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1; \
        fi
-       golangci-lint run
+       golangci-lint run --deadline=3m