|
| 1 | +## This file contains all available configuration options |
| 2 | +## with their default values. |
| 3 | +# |
| 4 | +## options for analysis running |
| 5 | +#run: |
| 6 | +# # default concurrency is a available CPU number |
| 7 | +# concurrency: 4 |
| 8 | +# |
| 9 | +# # timeout for analysis, e.g. 30s, 5m, default is 1m |
| 10 | +# timeout: 1m |
| 11 | +# |
| 12 | +# # exit code when at least one issue was found, default is 1 |
| 13 | +# issues-exit-code: 1 |
| 14 | +# |
| 15 | +# # include test files or not, default is true |
| 16 | +# tests: true |
| 17 | +# |
| 18 | +# # list of build tags, all linters use it. Default is empty list. |
| 19 | +# build-tags: |
| 20 | +# |
| 21 | +# |
| 22 | +# # which dirs to skip: issues from them won't be reported; |
| 23 | +# # can use regexp here: generated.*, regexp is applied on full path; |
| 24 | +# # default value is empty list, but default dirs are skipped independently |
| 25 | +# # from this option's value (see skip-dirs-use-default). |
| 26 | +# # "/" will be replaced by current OS file path separator to properly work |
| 27 | +# # on Windows. |
| 28 | +# skip-dirs: |
| 29 | +# |
| 30 | +# |
| 31 | +# # default is true. Enables skipping of directories: |
| 32 | +# # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ |
| 33 | +# skip-dirs-use-default: true |
| 34 | +# |
| 35 | +# # which files to skip: they will be analyzed, but issues from them |
| 36 | +# # won't be reported. Default value is empty list, but there is |
| 37 | +# # no need to include all autogenerated files, we confidently recognize |
| 38 | +# # autogenerated files. If it's not please let us know. |
| 39 | +# # "/" will be replaced by current OS file path separator to properly work |
| 40 | +# # on Windows. |
| 41 | +# skip-files: |
| 42 | +# |
| 43 | +# |
| 44 | +# # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": |
| 45 | +# # If invoked with -mod=readonly, the go command is disallowed from the implicit |
| 46 | +# # automatic updating of go.mod described above. Instead, it fails when any changes |
| 47 | +# # to go.mod are needed. This setting is most useful to check that go.mod does |
| 48 | +# # not need updates, such as in a continuous integration and testing system. |
| 49 | +# # If invoked with -mod=vendor, the go command assumes that the vendor |
| 50 | +# # directory holds the correct copies of dependencies and ignores |
| 51 | +# # the dependency descriptions in go.mod. |
| 52 | +# modules-download-mode: mod |
| 53 | +# |
| 54 | +# # Allow multiple parallel golangci-lint instances running. |
| 55 | +# # If false (default) - golangci-lint acquires file lock on start. |
| 56 | +# allow-parallel-runners: false |
| 57 | +# |
| 58 | +# |
| 59 | +## output configuration options |
| 60 | +#output: |
| 61 | +# # colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions |
| 62 | +# # default is "colored-line-number" |
| 63 | +# format: colored-line-number |
| 64 | +# |
| 65 | +# # print lines of code with issue, default is true |
| 66 | +# print-issued-lines: true |
| 67 | +# |
| 68 | +# # print linter name in the end of issue text, default is true |
| 69 | +# print-linter-name: true |
| 70 | +# |
| 71 | +# # make issues output unique by line, default is true |
| 72 | +# uniq-by-line: true |
| 73 | +# |
| 74 | +# # add a prefix to the output file references; default is no prefix |
| 75 | +# path-prefix: "" |
| 76 | +# |
| 77 | +# # sorts results by: filepath, line and column |
| 78 | +# sort-results: true |
| 79 | +# |
| 80 | +#linters: |
| 81 | +# enable: |
| 82 | +# - gosec |
| 83 | +# - megacheck |
| 84 | +# - govet |
| 85 | +# - goconst |
| 86 | +# - importas |
| 87 | +# - lll |
| 88 | +# - gocritic |
| 89 | +# - gocyclo |
| 90 | +# - godox |
| 91 | +# - gci |
| 92 | +# - dupl |
| 93 | +# - cyclop |
| 94 | +# - depguard |
| 95 | +# presets: |
| 96 | +# - bugs |
| 97 | +# - unused |
| 98 | +# disable: |
| 99 | +# - scopelint |
| 100 | +# fast: false |
| 101 | +# |
0 commit comments