Skip to content

Commit

Permalink
adds .golangci.yml, updates Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Oct 12, 2019
1 parent 95077a9 commit b94c78d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
21 changes: 21 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
run:
timeout: 30m

linters:
disable-all: true
enable:
- govet
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- golint
- unconvert
- goimports
- maligned
- unparam
- prealloc
- scopelint
18 changes: 1 addition & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,4 @@
SOURCE_FOLDERS := $(shell go list -f {{.Dir}} ./...)

lint:
golangci-lint run --deadline=30m --disable-all \
--enable=govet \
--enable=staticcheck \
--enable=unused \
--enable=gosimple \
--enable=structcheck \
--enable=varcheck \
--enable=ineffassign \
--enable=deadcode \
--enable=golint \
--enable=unconvert \
--enable=goimports \
--enable=maligned \
--enable=unparam \
--enable=prealloc \
--enable=scopelint \
./...
golangci-lint run ./...

0 comments on commit b94c78d

Please sign in to comment.