wal-g
/
.golangci.yml
101 строка · 2.1 Кб
1# This file contains all available configuration options
2# with their default values.
3
4# all available settings of specific linters
5linters-settings:6dupl:7threshold: 4008funlen:9lines: 10010statements: 5011gocritic:12enabled-tags:13- performance14disabled-tags:15- diagnostic16- experimental17- opinionated18- style19settings:20hugeParam:21sizeThreshold: 170 # temporary, default is 8022gocyclo:23min-complexity: 1524govet:25check-shadowing: false26misspell:27locale: US28lll:29line-length: 14030staticcheck:31# SA1019 is disabled until WAL-G has migrated from the deprecated package golang.org/x/crypto/openpgp32checks: [ "all", "-SA1019" ]33revive:34rules:35- name: blank-imports36- name: context-as-argument37- name: context-keys-type38- name: dot-imports39- name: error-return40- name: error-naming41- name: exported42- name: increment-decrement43- name: var-naming44- name: var-declaration45- name: package-comments46- name: range47- name: receiver-naming48- name: time-naming49- name: unexported-return50- name: indent-error-flow51- name: errorf52- name: empty-block53- name: unreachable-code54- name: redefines-builtin-id55
56linters:57# please, do not use `enable-all`: it's deprecated and will be removed soon.58# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint59disable-all: true60enable:61- bodyclose62- dupl63- errcheck64- exportloopref65- funlen66- gocritic67- gocyclo68- govet69- ineffassign70- misspell71- nakedret72- revive73- staticcheck74- typecheck75- unconvert76- unparam77- unused78- lll79- stylecheck80- gosimple81- whitespace82
83run:84go: "1.20"85timeout: 5m86modules-download-mode: readonly87skip-dirs:88- "tests_func"89- "tmp"90- "submodules"91- "testtools"92skip-files:93- ".*_test.go$"94
95severity:96default-severity: error97rules:98- linters:99- godox100- unused101severity: info102