2019-07-22 12:05:57 +03:00
|
|
|
run:
|
|
|
|
# timeout for analysis
|
|
|
|
deadline: 4m
|
2019-09-11 15:21:04 +03:00
|
|
|
|
|
|
|
# Linting uses a lot of memory. Keep it under control by only running a single
|
|
|
|
# worker.
|
|
|
|
concurrency: 1
|
|
|
|
|
2019-09-10 13:35:31 +03:00
|
|
|
build-tags:
|
|
|
|
- autopilotrpc
|
|
|
|
- chainrpc
|
|
|
|
- invoicesrpc
|
|
|
|
- routerrpc
|
|
|
|
- signrpc
|
|
|
|
- walletrpc
|
|
|
|
- watchtowerrpc
|
|
|
|
- wtclientrpc
|
2019-07-22 12:05:57 +03:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
# Don't report about shadowed variables
|
|
|
|
check-shadowing: false
|
|
|
|
gofmt:
|
|
|
|
# simplify code: gofmt with `-s` option, true by default
|
|
|
|
simplify: true
|
|
|
|
|
|
|
|
linters:
|
2019-09-11 15:21:04 +03:00
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
# Global variables are used in many places throughout the code base.
|
|
|
|
- gochecknoglobals
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-09-13 12:15:43 +03:00
|
|
|
# We have long functions, especially in tests. Moving or renaming those would
|
|
|
|
# trigger funlen problems that we may not want to solve at that time.
|
|
|
|
- funlen
|
|
|
|
|
2019-09-11 15:21:04 +03:00
|
|
|
issues:
|
|
|
|
# Only show newly introduced problems.
|
|
|
|
new-from-rev: 01f696afce2f9c0d4ed854edefa3846891d01d8a
|