github.com/daixiang0/gci@v0.13.0/.golangci.yml (about) 1 # options for analysis running 2 run: 3 # default concurrency is a available CPU number 4 concurrency: 4 5 6 # timeout for analysis, e.g. 30s, 5m, default is 1m 7 deadline: 10m 8 9 # exit code when at least one issue was found, default is 1 10 issues-exit-code: 1 11 12 # include test files or not, default is true 13 tests: true 14 15 # list of build tags, all linters use it. Default is empty list. 16 build-tags: 17 18 # which dirs to skip: they won't be analyzed; 19 # can use regexp here: generated.*, regexp is applied on full path; 20 # default value is empty list, but next dirs are always skipped independently 21 # from this option's value: 22 # third_party$, testdata$, examples$, Godeps$, builtin$ 23 skip-dirs: 24 25 # which files to skip: they will be analyzed, but issues from them 26 # won't be reported. Default value is empty list, but there is 27 # no need to include all autogenerated files, we confidently recognize 28 # autogenerated files. If it's not please let us know. 29 skip-files: 30 31 # output configuration options 32 output: 33 # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number" 34 format: tab 35 36 # print lines of code with issue, default is true 37 print-issued-lines: true 38 39 # print linter name in the end of issue text, default is true 40 print-linter-name: true 41 42 43 # all available settings of specific linters 44 linters-settings: 45 gci: 46 # Checks that no inline Comments are present. 47 # Default: false 48 no-inline-comments: false 49 50 # Checks that no prefix Comments(comment lines above an import) are present. 51 # Default: false 52 no-prefix-comments: false 53 54 # Section configuration to compare against. 55 # Section names are case-insensitive and may contain parameters in (). 56 # Default: ["standard", "default"] 57 sections: 58 - standard # Captures all standard packages if they do not match another section. 59 - default # Contains all imports that could not be matched to another section type. 60 - prefix(github.com/daixiang0/gci) # Groups all imports with the specified Prefix. 61 62 # Separators that should be present between sections. 63 # Default: ["newLine"] 64 section-separators: 65 - newLine 66 67 gofmt: 68 # simplify code: gofmt with `-s` option, true by default 69 simplify: true 70 goimports: 71 # put imports beginning with prefix after 3rd-party packages; 72 # it's a comma-separated list of prefixes 73 local-prefixes: github.com/daixiang0/gci 74 75 linters: 76 fast: false 77 enable: 78 - gofmt 79 - gofumpt 80 - goimports 81 - gci 82 disable-all: true 83 84 issues: 85 exclude: