|
| 1 | +# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. |
| 2 | +# |
| 3 | +# Generated on 2024-03-06T17:14:30Z by kres 5724eac-dirty. |
| 4 | + |
| 5 | +# options for analysis running |
| 6 | +run: |
| 7 | + timeout: 10m |
| 8 | + issues-exit-code: 1 |
| 9 | + tests: true |
| 10 | + build-tags: [] |
| 11 | + skip-dirs: [] |
| 12 | + skip-dirs-use-default: true |
| 13 | + skip-files: [] |
| 14 | + modules-download-mode: readonly |
| 15 | + |
| 16 | +# output configuration options |
| 17 | +output: |
| 18 | + format: colored-line-number |
| 19 | + print-issued-lines: true |
| 20 | + print-linter-name: true |
| 21 | + uniq-by-line: true |
| 22 | + path-prefix: "" |
| 23 | + |
| 24 | +# all available settings of specific linters |
| 25 | +linters-settings: |
| 26 | + dogsled: |
| 27 | + max-blank-identifiers: 2 |
| 28 | + dupl: |
| 29 | + threshold: 150 |
| 30 | + errcheck: |
| 31 | + check-type-assertions: true |
| 32 | + check-blank: true |
| 33 | + exhaustive: |
| 34 | + default-signifies-exhaustive: false |
| 35 | + funlen: |
| 36 | + lines: 60 |
| 37 | + statements: 40 |
| 38 | + gci: |
| 39 | + local-prefixes: github.com/siderolabs/go-copy/ |
| 40 | + gocognit: |
| 41 | + min-complexity: 30 |
| 42 | + ireturn: |
| 43 | + allow: |
| 44 | + - anon |
| 45 | + - error |
| 46 | + - empty |
| 47 | + - stdlib |
| 48 | + - github.com\/talos-systems\/kres\/internal\/dag.Node |
| 49 | + nestif: |
| 50 | + min-complexity: 5 |
| 51 | + goconst: |
| 52 | + min-len: 3 |
| 53 | + min-occurrences: 3 |
| 54 | + gocritic: |
| 55 | + disabled-checks: [] |
| 56 | + gocyclo: |
| 57 | + min-complexity: 20 |
| 58 | + godot: |
| 59 | + check-all: false |
| 60 | + godox: |
| 61 | + keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting |
| 62 | + - NOTE |
| 63 | + - OPTIMIZE # marks code that should be optimized before merging |
| 64 | + - HACK # marks hack-arounds that should be removed before merging |
| 65 | + gofmt: |
| 66 | + simplify: true |
| 67 | + goimports: |
| 68 | + local-prefixes: github.com/siderolabs/go-copy/ |
| 69 | + golint: |
| 70 | + min-confidence: 0.8 |
| 71 | + gomnd: |
| 72 | + settings: {} |
| 73 | + gomodguard: {} |
| 74 | + govet: |
| 75 | + check-shadowing: true |
| 76 | + enable-all: true |
| 77 | + lll: |
| 78 | + line-length: 200 |
| 79 | + tab-width: 4 |
| 80 | + misspell: |
| 81 | + locale: US |
| 82 | + ignore-words: [] |
| 83 | + nakedret: |
| 84 | + max-func-lines: 30 |
| 85 | + prealloc: |
| 86 | + simple: true |
| 87 | + range-loops: true # Report preallocation suggestions on range loops, true by default |
| 88 | + for-loops: false # Report preallocation suggestions on for loops, false by default |
| 89 | + nolintlint: |
| 90 | + allow-unused: false |
| 91 | + allow-leading-space: false |
| 92 | + allow-no-explanation: [] |
| 93 | + require-explanation: false |
| 94 | + require-specific: true |
| 95 | + rowserrcheck: {} |
| 96 | + testpackage: {} |
| 97 | + unparam: |
| 98 | + check-exported: false |
| 99 | + unused: |
| 100 | + check-exported: false |
| 101 | + whitespace: |
| 102 | + multi-if: false # Enforces newlines (or comments) after every multi-line if statement |
| 103 | + multi-func: false # Enforces newlines (or comments) after every multi-line function signature |
| 104 | + wsl: |
| 105 | + strict-append: true |
| 106 | + allow-assign-and-call: true |
| 107 | + allow-multiline-assign: true |
| 108 | + allow-cuddle-declarations: false |
| 109 | + allow-trailing-comment: false |
| 110 | + force-case-trailing-whitespace: 0 |
| 111 | + force-err-cuddling: false |
| 112 | + allow-separated-leading-comment: false |
| 113 | + gofumpt: |
| 114 | + extra-rules: false |
| 115 | + cyclop: |
| 116 | + # the maximal code complexity to report |
| 117 | + max-complexity: 20 |
| 118 | + # depguard: |
| 119 | + # Main: |
| 120 | + # deny: |
| 121 | + # - github.com/OpenPeeDeeP/depguard # this is just an example |
| 122 | + |
| 123 | +linters: |
| 124 | + enable-all: true |
| 125 | + disable-all: false |
| 126 | + fast: false |
| 127 | + disable: |
| 128 | + - exhaustruct |
| 129 | + - exhaustivestruct |
| 130 | + - forbidigo |
| 131 | + - funlen |
| 132 | + - gas |
| 133 | + - gochecknoglobals |
| 134 | + - gochecknoinits |
| 135 | + - godox |
| 136 | + - goerr113 |
| 137 | + - gomnd |
| 138 | + - gomoddirectives |
| 139 | + - ireturn |
| 140 | + - nestif |
| 141 | + - nonamedreturns |
| 142 | + - nosnakecase |
| 143 | + - paralleltest |
| 144 | + - tagliatelle |
| 145 | + - thelper |
| 146 | + - typecheck |
| 147 | + - varnamelen |
| 148 | + - wrapcheck |
| 149 | + - depguard # Disabled because starting with golangci-lint 1.53.0 it doesn't allow denylist alone anymore |
| 150 | + - tagalign |
| 151 | + - inamedparam |
| 152 | + - testifylint # complains about our assert recorder and has a number of false positives for assert.Greater(t, thing, 1) |
| 153 | + - protogetter # complains about us using Value field on typed spec, instead of GetValue which has a different signature |
| 154 | + - perfsprint # complains about us using fmt.Sprintf in non-performance critical code, updating just kres took too long |
| 155 | + # abandoned linters for which golangci shows the warning that the repo is archived by the owner |
| 156 | + - interfacer |
| 157 | + - maligned |
| 158 | + - golint |
| 159 | + - scopelint |
| 160 | + - varcheck |
| 161 | + - deadcode |
| 162 | + - structcheck |
| 163 | + - ifshort |
| 164 | + # disabled as it seems to be broken - goes into imported libraries and reports issues there |
| 165 | + - musttag |
| 166 | + |
| 167 | +issues: |
| 168 | + exclude: [] |
| 169 | + exclude-rules: [] |
| 170 | + exclude-use-default: false |
| 171 | + exclude-case-sensitive: false |
| 172 | + max-issues-per-linter: 10 |
| 173 | + max-same-issues: 3 |
| 174 | + new: false |
| 175 | + |
| 176 | +severity: |
| 177 | + default-severity: error |
| 178 | + case-sensitive: false |
0 commit comments