mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
run:
|
|
timeout: 10m
|
|
|
|
linters-settings:
|
|
gofmt:
|
|
simplify: true
|
|
govet:
|
|
enable-all: true
|
|
disable:
|
|
- fieldalignment
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- typecheck # This is to improve error reporting
|
|
- gofmt
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- revive
|
|
- exportloopref
|
|
- staticcheck
|
|
- unconvert
|
|
- unused
|
|
- misspell
|
|
- goimports
|
|
- makezero
|
|
- whitespace
|
|
- errcheck
|
|
|
|
issues:
|
|
exclude-dirs:
|
|
- channels/store/storetest/mocks
|
|
exclude-rules:
|
|
- linters:
|
|
# ignore unused warnings from enterprise code
|
|
# add more as required.
|
|
- unused
|
|
text: "SetupEnterprise"
|
|
|
|
- linters:
|
|
- revive
|
|
text: "var-naming|error-naming|exported|increment-decrement|error-strings|if-return|unused-parameter|blank-imports|empty-block"
|
|
# We need to fix the unused parameter issues and remove the exception.
|
|
|
|
# Use a seperate set of exception for the enterprise code to allow community members to fix only the open source issues.
|
|
- linters:
|
|
- revive
|
|
path: "enterprise"
|
|
text: "var-naming|error-naming|exported|increment-decrement|error-strings|if-return|unused-parameter|blank-imports|empty-block"
|
|
|
|
- linters:
|
|
- misspell
|
|
path: "platform/shared/markdown/html_entities.go"
|
|
|
|
- linters:
|
|
- staticcheck
|
|
text: SA1019
|
|
|
|
- linters:
|
|
- errcheck
|
|
path: "channels|platform|cmd/mattermost|public/model|public/plugin|public/shared/mlog|enterprise/saml|enterprise/cloud|enterprise/ldap"
|