2021-05-24 19:06:11 +02:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
modules-download-mode: readonly
|
2022-08-24 09:13:45 +02:00
|
|
|
skip-files:
|
|
|
|
- product/boards_product.go
|
2021-05-24 19:06:11 +02:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
gofmt:
|
|
|
|
simplify: true
|
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/mattermost/mattermost-starter-template
|
|
|
|
golint:
|
|
|
|
min-confidence: 0
|
|
|
|
govet:
|
|
|
|
check-shadowing: true
|
|
|
|
enable-all: true
|
2021-07-09 12:59:44 +02:00
|
|
|
disable:
|
|
|
|
- fieldalignment
|
2021-05-24 19:06:11 +02:00
|
|
|
misspell:
|
|
|
|
locale: US
|
2021-07-09 12:59:44 +02:00
|
|
|
lll:
|
|
|
|
line-length: 150
|
2021-07-14 15:36:18 +02:00
|
|
|
revive:
|
|
|
|
enableAllRules: true
|
|
|
|
rules:
|
|
|
|
- name: exported
|
|
|
|
disabled: true
|
2021-05-24 19:06:11 +02:00
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2021-07-09 12:59:44 +02:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
2021-05-24 19:06:11 +02:00
|
|
|
- deadcode
|
2021-07-09 12:59:44 +02:00
|
|
|
- ineffassign
|
|
|
|
- structcheck
|
|
|
|
- varcheck
|
|
|
|
- unparam
|
2021-05-24 19:06:11 +02:00
|
|
|
- errcheck
|
2021-07-09 12:59:44 +02:00
|
|
|
- govet
|
|
|
|
- bodyclose
|
|
|
|
- durationcheck
|
|
|
|
- errorlint
|
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
|
|
|
- gosec
|
|
|
|
- makezero
|
|
|
|
- staticcheck
|
|
|
|
- prealloc
|
|
|
|
- asciicheck
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
|
|
|
- dupl
|
|
|
|
- goconst
|
2021-05-24 19:06:11 +02:00
|
|
|
- gocritic
|
2021-07-09 12:59:44 +02:00
|
|
|
- godot
|
|
|
|
- goerr113
|
|
|
|
- goheader
|
2021-07-14 15:36:18 +02:00
|
|
|
- revive
|
2021-07-09 12:59:44 +02:00
|
|
|
- nakedret
|
|
|
|
- gomodguard
|
|
|
|
- goprintffuncname
|
2021-05-24 19:06:11 +02:00
|
|
|
- gosimple
|
2021-07-09 12:59:44 +02:00
|
|
|
- lll
|
2021-05-24 19:06:11 +02:00
|
|
|
- misspell
|
2021-07-09 12:59:44 +02:00
|
|
|
- nolintlint
|
2021-05-24 19:06:11 +02:00
|
|
|
- stylecheck
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unused
|
|
|
|
- whitespace
|
2022-06-21 17:12:55 +02:00
|
|
|
- gocyclo
|
2021-05-24 19:06:11 +02:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: server/manifest.go
|
|
|
|
linters:
|
|
|
|
- deadcode
|
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
- path: server/configuration.go
|
|
|
|
linters:
|
|
|
|
- unused
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- bodyclose
|
|
|
|
- scopelint # https://github.com/kyoh86/scopelint/issues/4
|