github.com/fufuok/freelru@v0.13.3/.golangci.yml (about) 1 service: 2 golangci-lint-version: 1.48.x 3 4 run: 5 skip-dirs: 6 - artifacts 7 - build-targets 8 - design 9 - docker-images 10 - docs 11 - etc 12 - experiments 13 - infrastructure 14 - legal 15 - libpf-rs 16 - mocks 17 - pf-code-indexing-service/cibackend/gomock_* 18 - pf-debug-metadata-service/dmsbackend/gomock_* 19 - pf-host-agent/support/ci-kernels 20 - pf-storage-backend/storagebackend/gomock_* 21 - scratch 22 - systemtests/benchmarks/_outdata 23 - target 24 - virt-tests 25 - vm-images 26 27 linters: 28 enable-all: true 29 disable: 30 # Disabled because of 31 # - too many non-sensical warnings 32 # - not relevant for us 33 # - false positives 34 # 35 # "might be worth fixing" means we should investigate/fix in the mid term 36 - containedctx # might be worth fixing 37 - contextcheck # might be worth fixing 38 - cyclop 39 - depguard 40 - dupword 41 - durationcheck # might be worth fixing 42 - errname # might be worth fixing 43 - errorlint # might be worth fixing 44 - exhaustive 45 - exhaustivestruct 46 - exhaustruct 47 - forcetypeassert # might be worth fixing 48 - funlen 49 - gci # might be worth fixing 50 - gochecknoglobals 51 - gochecknoinits 52 - gocognit 53 - gocyclo 54 - godot 55 - godox # complains about TODO etc 56 - goerr113 57 - gofumpt 58 - goimports # might be worth fixing 59 - golint # might be worth fixing 60 - gomnd 61 - gomoddirectives 62 - ifshort 63 - interfacebloat 64 - ireturn 65 - maintidx 66 - makezero 67 - nestif 68 - nilerr # might be worth fixing 69 - nilnil 70 - nlreturn 71 - noctx # might be worth fixing 72 - nolintlint 73 - nonamedreturns 74 - nosnakecase 75 - paralleltest 76 - scopelint # might be worth fixing 77 - sqlclosecheck # might be worth fixing 78 - tagalign 79 - tagliatelle 80 - testableexamples # might be worth fixing 81 - testpackage 82 - tparallel # might be worth fixing 83 - thelper 84 - varnamelen 85 - wastedassign 86 - wsl 87 - wrapcheck 88 - forbidigo 89 # the following linters are deprecated 90 - exhaustivestruct 91 - scopelint 92 - nosnakecase 93 - interfacer 94 - maligned 95 - ifshort 96 - structcheck # might be worth fixing 97 - deadcode 98 - golint 99 - varcheck 100 101 linters-settings: 102 goconst: 103 min-len: 2 104 min-occurrences: 2 105 gocritic: 106 enabled-tags: 107 - diagnostic 108 - experimental 109 - opinionated 110 - performance 111 - style 112 disabled-checks: 113 - dupImport # https://github.com/go-critic/go-critic/issues/845 114 - ifElseChain 115 - octalLiteral 116 - whyNoLint 117 - wrapperFunc 118 - sloppyReassign 119 - uncheckedInlineErr # Experimental rule with high false positive rate. 120 121 # Broken with Go 1.18 feature (https://github.com/golangci/golangci-lint/issues/2649): 122 - hugeParam 123 - rangeValCopy 124 - typeDefFirst 125 - paramTypeCombine 126 gocyclo: 127 min-complexity: 15 128 govet: 129 enable-all: true 130 check-shadowing: true 131 disable: 132 - fieldalignment 133 settings: 134 printf: # analyzer name, run `go tool vet help` to see all analyzers 135 funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer 136 - debug,debugf,debugln 137 - error,errorf,errorln 138 - fatal,fatalf,fataln 139 - info,infof,infoln 140 - log,logf,logln 141 - warn,warnf,warnln 142 - print,printf,println,sprint,sprintf,sprintln,fprint,fprintf,fprintln 143 lll: 144 line-length: 120 145 tab-width: 4 146 maligned: 147 suggest-new: true 148 misspell: 149 locale: US