github.com/pawelgaczynski/giouring@v0.0.0-20230826085535-69588b89acb9/.golangci.yaml (about) 1 run: 2 timeout: 3m 3 4 modules-download-mode: readonly 5 go: "1.20" 6 7 linters-settings: 8 cyclop: 9 max-complexity: 30 10 package-average: 10.0 11 12 errcheck: 13 check-type-assertions: true 14 15 goheader: 16 template: |- 17 MIT License 18 19 Copyright (c) 2023 Paweł Gaczyński 20 21 Permission is hereby granted, free of charge, to any person obtaining a 22 copy of this software and associated documentation files (the 23 "Software"), to deal in the Software without restriction, including 24 without limitation the rights to use, copy, modify, merge, publish, 25 distribute, sublicense, and/or sell copies of the Software, and to 26 permit persons to whom the Software is furnished to do so, subject to 27 the following conditions: 28 29 The above copyright notice and this permission notice shall be included 30 in all copies or substantial portions of the Software. 31 32 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 33 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 34 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 35 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 36 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 37 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 38 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 39 40 govet: 41 enable-all: true 42 disable: 43 - fieldalignment 44 settings: 45 shadow: 46 strict: true 47 48 linters: 49 disable-all: true 50 51 enable: 52 - errcheck 53 - gosimple 54 - govet 55 - ineffassign 56 - staticcheck 57 - unused 58 - asasalint 59 - asciicheck 60 - bidichk 61 - containedctx 62 - contextcheck 63 - cyclop 64 - dogsled 65 - dupl 66 - dupword 67 - durationcheck 68 - errname 69 - errorlint 70 - exhaustive 71 - exportloopref 72 - forbidigo 73 - forcetypeassert 74 - gocheckcompilerdirectives 75 - gochecknoinits 76 - goconst 77 - gocritic 78 - gocyclo 79 # - godox 80 # - goerr113 81 - gofmt 82 - gofumpt 83 - goheader 84 - goimports 85 - gomnd 86 - gosec 87 - grouper 88 - importas 89 - lll 90 - loggercheck 91 - maintidx 92 - makezero 93 - mirror 94 - misspell 95 - nakedret 96 - nilerr 97 - nilnil 98 - nlreturn 99 - prealloc 100 - predeclared 101 - reassign 102 - revive 103 - stylecheck 104 - tagliatelle 105 - tenv 106 - testableexamples 107 - tparallel 108 - unconvert 109 - unparam 110 - usestdlibvars 111 - wastedassign 112 - whitespace 113 114 issues: 115 max-same-issues: 50 116 117 exclude-rules: 118 - path: "_test\\.go" 119 linters: [ dupl ] 120 - linters: 121 - lll 122 source: "^// "