github.com/mattermost/mattermost-server/v5@v5.39.3/.golangci.yml (about) 1 run: 2 timeout: 5m 3 modules-download-mode: vendor 4 skip-dirs: 5 - store/storetest/mocks 6 7 linters-settings: 8 gofmt: 9 simplify: true 10 govet: 11 check-shadowing: true 12 enable-all: true 13 disable: 14 - fieldalignment 15 16 linters: 17 disable-all: true 18 enable: 19 - deadcode 20 - gofmt 21 - golint 22 - gosimple 23 - govet 24 - ineffassign 25 - exportloopref 26 - structcheck 27 - staticcheck 28 - unconvert 29 - unused 30 - varcheck 31 - misspell 32 - goimports 33 # TODO: enable this later 34 # - errcheck 35 36 issues: 37 exclude-rules: 38 - linters: 39 # ignore unused warnings from enterprise code 40 # add more as required. 41 - unused 42 text: "SetupEnterprise" 43 44 - linters: 45 - staticcheck 46 path: ".*_test.go|store/storetest" 47 48 - linters: 49 - golint 50 text: "should have|should be|should replace|stutters|underscore|annoying|error strings should not be capitalized" 51 52 - linters: 53 - golint 54 path: "model/" 55 56 - linters: 57 - misspell 58 path: "shared/markdown/html_entities.go"