* fix linting issues on webpack.config.js * sync with demo plugin, go mod tidy * npm audit fix There's a rash of lodash issues right now that have no available fix, but I'm fixing the remaining issues. * use exact versions * update webapp/package-lock.json too * manually clean up go.mod/go.sum * private package.json
62 lines
1 KiB
YAML
62 lines
1 KiB
YAML
run:
|
|
timeout: 5m
|
|
modules-download-mode: readonly
|
|
|
|
linters-settings:
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
gofmt:
|
|
simplify: true
|
|
goimports:
|
|
local-prefixes: github.com/mattermost/mattermost-starter-template
|
|
golint:
|
|
min-confidence: 0
|
|
govet:
|
|
check-shadowing: true
|
|
enable-all: true
|
|
misspell:
|
|
locale: US
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- errcheck
|
|
- goconst
|
|
- gocritic
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- interfacer
|
|
- misspell
|
|
- nakedret
|
|
- staticcheck
|
|
- structcheck
|
|
- stylecheck
|
|
- typecheck
|
|
- unconvert
|
|
- unused
|
|
- varcheck
|
|
- whitespace
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: server/manifest.go
|
|
linters:
|
|
- deadcode
|
|
- unused
|
|
- varcheck
|
|
- path: server/configuration.go
|
|
linters:
|
|
- unused
|
|
- path: _test\.go
|
|
linters:
|
|
- bodyclose
|
|
- goconst
|
|
- scopelint # https://github.com/kyoh86/scopelint/issues/4
|