github.com/richardwilkes/toolbox@v1.121.0/.golangci.yml (about) 1 run: 2 timeout: 5m 3 tests: true 4 modules-download-mode: readonly 5 output: 6 print-issued-lines: true 7 print-linter-name: true 8 sort-results: true 9 linters-settings: 10 depguard: 11 rules: 12 main: 13 deny: 14 - pkg: github.com/satori/go.uuid 15 desc: Use github.com/google/uuid or github.com/gofrs/uuid instead 16 errcheck: 17 check-type-assertions: true 18 check-blank: true 19 exclude-functions: 20 - fmt.Fprint 21 - fmt.Fprintf 22 - fmt.Fprintln 23 - (fmt.State).Write 24 goconst: 25 min-len: 3 26 min-occurrences: 3 27 gocritic: 28 enabled-tags: 29 - diagnostic 30 - experimental 31 - opinionated 32 - performance 33 - style 34 disabled-checks: 35 - sloppyReassign 36 gofumpt: 37 extra-rules: true 38 gosec: 39 excludes: 40 - G103 41 - G115 42 - G204 43 - G301 44 - G302 45 - G303 46 - G304 47 - G306 48 - G307 49 govet: 50 enable-all: true 51 disable: 52 - composites 53 settings: 54 shadow: 55 strict: true 56 printf: 57 funcs: 58 - Errorf 59 - Warnf 60 - Infof 61 - Debugf 62 - Fatalf 63 - StartRootSpanf 64 - StartSubSpanf 65 - EndWithMsgf 66 - Newf 67 - NewWithCausef 68 misspell: 69 locale: US 70 prealloc: 71 simple: true 72 range-loops: true 73 for-loops: false 74 revive: 75 rules: 76 - name: blank-imports 77 disabled: false 78 - name: context-as-argument 79 disabled: false 80 - name: context-keys-type 81 disabled: false 82 - name: dot-imports 83 disabled: false 84 - name: error-return 85 disabled: false 86 - name: error-strings 87 disabled: false 88 - name: error-naming 89 disabled: false 90 - name: exported 91 disabled: false 92 - name: if-return 93 disabled: false 94 - name: increment-decrement 95 disabled: false 96 - name: var-naming 97 disabled: false 98 - name: var-declaration 99 disabled: false 100 - name: package-comments 101 disabled: true 102 - name: range 103 disabled: false 104 - name: receiver-naming 105 disabled: false 106 - name: time-naming 107 disabled: false 108 - name: unexported-return 109 disabled: false 110 - name: indent-error-flow 111 disabled: false 112 - name: errorf 113 disabled: false 114 - name: unused-parameter 115 disabled: false 116 arguments: 117 - allowRegex: "^_" 118 staticcheck: 119 checks: ["all", "-SA3000"] 120 linters: 121 disable-all: true 122 enable: 123 - copyloopvar 124 - depguard 125 - errcheck 126 - errorlint 127 - goconst 128 - gocritic 129 - gofumpt 130 - goimports 131 - gosec 132 - gosimple 133 - govet 134 - ineffassign 135 - misspell 136 - noctx 137 - prealloc 138 - predeclared 139 - revive 140 - staticcheck 141 - typecheck 142 - unconvert 143 - unused 144 issues: 145 exclude-use-default: false 146 exclude: 147 - "package-comments: should have a package comment"