# options for analysis running run: # timeout for analysis, e.g. 30s, 5m, default is 1m timeout: 5m modules-download-mode: readonly # all available settings of specific linters linters-settings: staticcheck: checks: - inherit # list of useful linters could be found at https://github.com/golangci/awesome-go-linters linters: disable-all: true enable: - golint - goimports # https://godoc.org/golang.org/x/tools/cmd/goimports - staticcheck # https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck - gosimple # https://github.com/dominikh/go-tools/tree/master/cmd/gosimple - unused - govet issues: # Excluding configuration per-path, per-linter, per-text and per-source exclude-rules: # govet checks all struct initializations must be keyed by field names - linters: - govet text: "composite literal uses unkeyed fields" # Maximum issues count per one linter. Set to 0 to disable. Default is 50. max-issues-per-linter: 0 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. max-same-issues: 0