Skip to content

Commit

Permalink
Introduce .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hypnoglow committed Feb 9, 2020
1 parent 6987a7f commit 887037d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
32 changes: 32 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
linters:
disable-all: true
enable:
- deadcode
- dupl
- errcheck
- goconst
- gocyclo
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- prealloc
- scopelint
- staticcheck
- structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck

run:
deadline: 5m
29 changes: 1 addition & 28 deletions scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,4 @@ source ./common.sh

header_text "running golangci-lint"
cd .. # To go to the root of the project
# Keep the enabled linters in separate, ordered lines to avoid duplicates.
golangci-lint run --disable-all --deadline 5m \
--enable=deadcode \
--enable=dupl \
--enable=errcheck \
--enable=goconst \
--enable=gocyclo \
--enable=gofmt \
--enable=goimports \
--enable=golint \
--enable=gosec \
--enable=gosimple \
--enable=govet \
--enable=ineffassign \
--enable=interfacer \
--enable=lll \
--enable=maligned \
--enable=misspell \
--enable=nakedret \
--enable=prealloc \
--enable=scopelint \
--enable=staticcheck \
--enable=structcheck \
--enable=typecheck \
--enable=unconvert \
--enable=unparam \
--enable=unused \
--enable=varcheck \
golangci-lint run

0 comments on commit 887037d

Please sign in to comment.