github.com/mailru/activerecord@v1.12.2/.golangci.yml (about) 1 # More info on config here: https://github.com/golangci/golangci-lint#config-file 2 run: 3 deadline: 10m 4 issues-exit-code: 1 5 tests: true 6 skip-dirs: 7 - bin 8 9 output: 10 format: colored-line-number 11 print-issued-lines: true 12 print-linter-name: true 13 14 linters-settings: 15 govet: 16 check-shadowing: true 17 golint: 18 min-confidence: 0 19 dupl: 20 threshold: 100 21 goconst: 22 min-len: 2 23 min-occurrences: 2 24 gocritic: 25 enabled-checks: 26 - nilValReturn 27 28 linters: 29 disable-all: true 30 enable: 31 # - revive 32 - govet 33 - errcheck 34 - ineffassign 35 - typecheck 36 # - goconst 37 - gosec 38 - goimports 39 - gosimple 40 - unused 41 - staticcheck # enable before push 42 - gocyclo 43 # - dupl # - it's very slow, enable if you really know why you need it 44 - gocognit 45 - prealloc 46 - gochecknoinits 47 # - wsl 48 - gocritic 49 50 issues: 51 new-from-rev: "" 52 exclude-use-default: false 53 exclude: 54 # _ instead of err checks 55 - G104 56 # can be removed in the development phase 57 - (comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form) 58 # not for the active development - can be removed in the stable phase 59 - should have a package comment, unless it's in another file for this package 60 - don't use an underscore in package name 61 # errcheck: Almost all programs ignore errors on these functions and in most cases it's ok 62 - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv|.*Rollback). is not checked 63 - should check returned error before deferring 64 - "not declared by package utf8" 65 - "unicode/utf8/utf8.go" 66 exclude-rules: 67 - path: ".*\\.*_test\\.go$" 68 linters: 69 - dupl 70 - wsl 71 - gosec 72 - prealloc 73 - gocognit 74 - gocyclo