github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/.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 14 linters: 15 disable-all: true 16 enable: 17 - deadcode 18 - gofmt 19 - golint 20 - gosimple 21 - govet 22 - ineffassign 23 - scopelint 24 - structcheck 25 - staticcheck 26 - unconvert 27 - unused 28 - varcheck 29 - misspell 30 - goimports 31 # TODO: enable this later 32 # - errcheck 33 34 issues: 35 exclude-rules: 36 - linters: 37 # ignore unused warnings from enterprise code 38 # add more as required. 39 - unused 40 text: "SetupEnterprise" 41 42 - linters: 43 - scopelint 44 # ignore warnings from table tests. https://github.com/kyoh86/scopelint/issues/4 45 path: ".*_test.go|store/storetest" 46 47 - linters: 48 - staticcheck 49 path: ".*_test.go|store/storetest" 50 51 - linters: 52 - golint 53 text: "should have|should be|should replace|stutters|underscore|annoying|error strings should not be capitalized" 54 55 - linters: 56 - golint 57 path: "model/" 58 59 - linters: 60 - misspell 61 path: "utils/markdown/html_entities.go" 62 63 - linters: 64 - unparam 65 path: "app/plugin_api_tests" 66 text: "is always nil"