build: enable linters for future changes

This commit is contained in:
Joost Jager 2019-09-11 14:21:04 +02:00
parent 01f696afce
commit 5249a21a65
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -1,6 +1,11 @@
run: run:
# timeout for analysis # timeout for analysis
deadline: 4m deadline: 4m
# Linting uses a lot of memory. Keep it under control by only running a single
# worker.
concurrency: 1
build-tags: build-tags:
- autopilotrpc - autopilotrpc
- chainrpc - chainrpc
@ -20,9 +25,18 @@ linters-settings:
simplify: true simplify: true
linters: linters:
disable-all: true enable-all: true
enable: disable:
- gofmt # Global variables are used in many places throughout the code base.
- golint - gochecknoglobals
- govet
- unused # Some lines are over 80 characters on purpose and we don't want to make them
# even longer by marking them as 'nolint'.
- lll
# We don't care (enough) about misaligned structs to lint that.
- maligned
issues:
# Only show newly introduced problems.
new-from-rev: 01f696afce2f9c0d4ed854edefa3846891d01d8a