Skip to content

Commit

Permalink
Switching to GoLangCi-Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vishakhanihore committed Oct 21, 2019
1 parent 14c5f8b commit 6253115
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
28 changes: 28 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
run:
deadline: 5m

linters:
disable-all: true
enable:
- dupl
- goconst
- gocyclo
- gofmt
- golint
- govet
- ineffassign
- interfacer
- lll
- misspell
- nakedret
- structcheck
- unparam
- varcheck

linters-settings:
dupl:
threshold: 400
lll:
line-length: 170
golint:
min-confidence: 0.85
25 changes: 0 additions & 25 deletions .gometalinter.json

This file was deleted.

5 changes: 2 additions & 3 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,15 @@ tasks:
- /bin/bash
- '-c'
- |
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.12.3 &&
mkdir -p /go/src/github.com/taskcluster/taskcluster-lib-urls
cd /go/src/github.com/taskcluster/taskcluster-lib-urls
git clone {{event.head.repo.url}} .
git config advice.detachedHead false
git checkout {{event.head.sha}}
go get -v -d -t ./...
go test -v -race ./...
go get -u github.com/alecthomas/gometalinter
gometalinter --install
gometalinter
golangci-lint run
metadata:
name: "taskcluster-lib-urls go test"
description: Run library test suite - golang 1.10
Expand Down

0 comments on commit 6253115

Please sign in to comment.