github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/.golangci.yml (about) 1 run: 2 # Timeout for analysis. 3 deadline: 10m 4 5 # Modules download mode (do not modify go.mod) 6 module-download-mode: readonly 7 8 # Exclude test files 9 tests: false 10 11 # which dirs to skip: they won't be analyzed; 12 # can use regexp here: generated.*, regexp is applied on full path; 13 # default value is empty list, but next dirs are always skipped independently 14 # from this option's value: 15 # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ 16 skip-dirs: 17 - ui 18 19 # which files to skip: they will be analyzed, but issues from them 20 # won't be reported. Default value is empty list, but there is 21 # no need to include all autogenerated files, we confidently recognize 22 # autogenerated files. If it's not please let us know. 23 skip-files: 24 - ".*\\.generated\\.go$" 25 - ".*bindata_assetfs\\.go$" 26 27 # output configuration options 28 output: 29 # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" 30 format: colored-line-number 31 32 # print lines of code with issue, default is true 33 print-issued-lines: true 34 35 # print linter name in the end of issue text, default is true 36 print-linter-name: true 37 38 # all available settings of specific linters 39 linters-settings: 40 errcheck: 41 # report about not checking of errors in type assetions: `a := b.(MyStruct)`; 42 # default is false: such cases aren't reported by default. 43 check-type-assertions: false 44 45 # [deprecated] comma-separated list of pairs of the form pkg:regex 46 # the regex is used to ignore names within pkg. (default "fmt:.*"). 47 # see https://github.com/kisielk/errcheck#the-deprecated-method for details 48 ignore: fmt:.*,io/ioutil:^Read.* 49 50 # path to a file containing a list of functions to exclude from checking 51 # see https://github.com/kisielk/errcheck#excluding-functions for details 52 # exclude: /path/to/file.txt 53 govet: 54 # report about shadowed variables 55 check-shadowing: false 56 gofmt: 57 # simplify code: gofmt with `-s` option, true by default 58 simplify: true 59 depguard: 60 # disallow packages from being used 61 list-type: blacklist 62 packages: 63 - github.com/boltdb/bolt 64 - github.com/hashicorp/consul/command/flags 65 - github.com/pkg/errors 66 gocritic: 67 disabled-checks: 68 - commentFormatting 69 - deprecatedComment 70 staticcheck: 71 # I(jrasell) will work on enabling additional checks when possible. 72 checks: ["ST1020", "ST1016"] 73 74 issues: 75 exclude: 76 - ifElseChain 77 - singleCaseSwitch 78 - assignOp 79 - unlambda 80 81 linters: 82 disable-all: true 83 enable: 84 - goimports 85 - gocritic 86 - misspell 87 - govet 88 - ineffassign 89 - unconvert 90 - gofmt 91 - gosimple 92 - depguard 93 - staticcheck 94 - asasalint 95 - asciicheck 96 - bidichk 97 - bodyclose 98 - dogsled 99 - durationcheck 100 # - errchkjson (todo) 101 # - errorlint (todo) 102 - exportloopref 103 fast: false 104