github.com/apache/skywalking-eyes@v0.6.0/.golangci.yml (about) 1 # Licensed to the Apache Software Foundation (ASF) under one 2 # or more contributor license agreements. See the NOTICE file 3 # distributed with this work for additional information 4 # regarding copyright ownership. The ASF licenses this file 5 # to you under the Apache License, Version 2.0 (the 6 # "License"); you may not use this file except in compliance 7 # with the License. You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, 12 # software distributed under the License is distributed on an 13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 # KIND, either express or implied. See the License for the 15 # specific language governing permissions and limitations 16 # under the License. 17 18 run: 19 tests: false 20 21 linters-settings: 22 govet: 23 check-shadowing: true 24 revive: 25 min-confidence: 0 26 gocyclo: 27 min-complexity: 20 28 maligned: 29 suggest-new: true 30 dupl: 31 threshold: 200 32 goconst: 33 min-len: 2 34 min-occurrences: 2 35 depguard: 36 list-type: blacklist 37 include-go-root: true 38 packages-with-error-messages: 39 fmt: "logging is allowed only by logutils.Log" 40 misspell: 41 locale: US 42 ignore-words: 43 - analogue 44 - analyse 45 - artefact 46 - authorised 47 - calibre 48 - cancelled 49 - catalogue 50 - categorise 51 - centre 52 - emphasised 53 - favour 54 - favourite 55 - fulfil 56 - fulfilment 57 - initialise 58 - labelling 59 - labour 60 - licence 61 - maximise 62 - modelled 63 - modelling 64 - offence 65 - optimise 66 - organisation 67 - organise 68 - practise 69 - programme 70 - realise 71 - recognise 72 - signalling 73 - utilisation 74 lll: 75 line-length: 150 76 goimports: 77 local-prefixes: github.com/apache/skywalking-eyes 78 gocritic: 79 enabled-tags: 80 - diagnostic 81 - experimental 82 - opinionated 83 - performance 84 - style 85 disabled-checks: 86 - ifElseChain 87 funlen: 88 lines: 100 89 statements: 50 90 whitespace: 91 multi-if: false 92 multi-func: false 93 94 linters: 95 enable: 96 - bodyclose 97 - deadcode 98 - depguard 99 - dogsled 100 - dupl 101 - errcheck 102 - funlen 103 - goconst 104 - gocritic 105 - gocyclo 106 - gofmt 107 - goimports 108 - revive 109 - gosec 110 - gosimple 111 - govet 112 - ineffassign 113 - lll 114 - misspell 115 - nakedret 116 - staticcheck 117 - structcheck 118 - stylecheck 119 - typecheck 120 - unconvert 121 - unparam 122 - unused 123 - varcheck 124 - whitespace 125 126 service: 127 golangci-lint-version: 1.20.x 128 prepare: 129 - echo "here I can run custom commands, but no preparation needed for this repo"