# options for analysis running run: # default concurrency is a available CPU number concurrency: 4 # timeout for analysis, e.g. 30s, 5m, default is 1m timeout: 10m # exit code when at least one issue was found, default is 1 issues-exit-code: 1 # include test files or not, default is true tests: true # output configuration options output: # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number" formats: - format: tab # print lines of code with issue, default is true print-issued-lines: true # print linter name in the end of issue text, default is true print-linter-name: true # all available settings of specific linters linters-settings: gci: # Checks that no inline Comments are present. # Default: false no-inline-comments: false # Checks that no prefix Comments(comment lines above an import) are present. # Default: false no-prefix-comments: false # Section configuration to compare against. # Section names are case-insensitive and may contain parameters in (). # Default: ["standard", "default"] sections: - standard # Captures all standard packages if they do not match another section. - default # Contains all imports that could not be matched to another section type. - prefix(github.com/daixiang0/gci) # Groups all imports with the specified Prefix. gofmt: # simplify code: gofmt with `-s` option, true by default simplify: true goimports: # put imports beginning with prefix after 3rd-party packages; # it's a comma-separated list of prefixes local-prefixes: github.com/daixiang0/gci linters: disable-all: true enable: - gofmt - gofumpt - goimports - gci