github.com/twelho/conform@v0.0.0-20231016230407-c25e9238598a/.golangci.yml (about) 1 # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. 2 # 3 # Generated on 2022-09-19T13:49:50Z by kres 9ea8a33. 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/conform 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/conform 69 golint: 70 min-confidence: 0.8 71 gomnd: 72 settings: {} 73 gomodguard: {} 74 govet: 75 check-shadowing: true 76 enable-all: true 77 depguard: 78 list-type: blacklist 79 include-go-root: false 80 lll: 81 line-length: 200 82 tab-width: 4 83 misspell: 84 locale: US 85 ignore-words: [] 86 nakedret: 87 max-func-lines: 30 88 prealloc: 89 simple: true 90 range-loops: true # Report preallocation suggestions on range loops, true by default 91 for-loops: false # Report preallocation suggestions on for loops, false by default 92 nolintlint: 93 allow-unused: false 94 allow-leading-space: false 95 allow-no-explanation: [] 96 require-explanation: false 97 require-specific: true 98 rowserrcheck: {} 99 testpackage: {} 100 unparam: 101 check-exported: false 102 unused: 103 check-exported: false 104 whitespace: 105 multi-if: false # Enforces newlines (or comments) after every multi-line if statement 106 multi-func: false # Enforces newlines (or comments) after every multi-line function signature 107 wsl: 108 strict-append: true 109 allow-assign-and-call: true 110 allow-multiline-assign: true 111 allow-cuddle-declarations: false 112 allow-trailing-comment: false 113 force-case-trailing-whitespace: 0 114 force-err-cuddling: false 115 allow-separated-leading-comment: false 116 gofumpt: 117 extra-rules: false 118 cyclop: 119 # the maximal code complexity to report 120 max-complexity: 20 121 122 linters: 123 enable-all: true 124 disable-all: false 125 fast: false 126 disable: 127 - exhaustruct 128 - exhaustivestruct 129 - forbidigo 130 - funlen 131 - gas 132 - gochecknoglobals 133 - gochecknoinits 134 - godox 135 - goerr113 136 - gomnd 137 - gomoddirectives 138 - ireturn 139 - nestif 140 - nonamedreturns 141 - nosnakecase 142 - paralleltest 143 - tagliatelle 144 - thelper 145 - typecheck 146 - varnamelen 147 - wrapcheck 148 # abandoned linters for which golangci shows the warning that the repo is archived by the owner 149 - interfacer 150 - maligned 151 - golint 152 - scopelint 153 154 issues: 155 exclude: [] 156 exclude-rules: [] 157 exclude-use-default: false 158 exclude-case-sensitive: false 159 max-issues-per-linter: 10 160 max-same-issues: 3 161 new: false 162 163 severity: 164 default-severity: error 165 case-sensitive: false