.golangci.yml
This file
The walk stopped after 200 commits: lines older than 89d7b83 point at it.
update copyright year (#1927)Unai Martinez-Corralbefore adoption9e6b58a
line 1why, one step back1# Copyright 2013-2023 The Cobra Authorsadd missing license headers (#1809)Unai Martinez-Corralbefore adoption6d978a9
lines 2–14why, one step back2#3# Licensed under the Apache License, Version 2.0 (the "License");4# you may not use this file except in compliance with the License.5# You may obtain a copy of the License at6#7# http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# distributed under the License is distributed on an "AS IS" BASIS,11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12# See the License for the specific language governing permissions and13# limitations under the License.14chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4
lines 15–16why, one step back15version: "2"16Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
line 17why, one step back17run:chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4
line 18why, one step back18 timeout: 5mAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
line 19why, one step back19chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4
lines 20–24why, one step back20formatters:21 enable:22 - gofmt23 - goimports24Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
line 25why, one step back25linters:chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4
line 26why, one step back26 default: noneAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
lines 27–36why, one step back27 enable:28 #- bodyclose29 #- depguard30 #- dogsled31 #- dupl32 - errcheck33 #- exhaustive34 #- funlen35 #- gochecknoinits36 - goconstMore linting (#2099)Ville Skyttäbefore adoption6b5f577
line 37why, one step back37 - gocriticAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
lines 38–39why, one step back38 #- gocyclo39 #- goprintffuncnameAddress golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0
line 40why, one step back40 - gosecAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
lines 41–43why, one step back41 - govet42 - ineffassign43 #- lllAddress golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0
line 44why, one step back44 - misspellchore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4
line 45why, one step back45 #- mndAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
lines 46–47why, one step back46 #- nakedret47 #- noctxAddress golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0
line 48why, one step back48 - nolintlintAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
line 49why, one step back49 #- rowserrcheckAddress golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0
line 50why, one step back50 - staticcheckAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
lines 51–52why, one step back51 - unconvert52 #- unparamgolangci: enable 'unused' and disable deprecated replaced by it (#1983)Unai Martinez-Corralbefore adoption66b215b
line 53why, one step back53 - unusedAdd Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83
line 54why, one step back54 #- whitespacechore(golangci-lint): add some exclusion presetsVille Skyttäbefore adoptionc8289c1
lines 55–59why, one step back55 exclusions:56 presets:57 - common-false-positives58 - legacy59 - std-error-handling60 warn-unused: true61 rules:62 - path: '_test\.go'63 linters:64 - goconst65 - linters:66 - goconst67 text: 'string `(true|bash|zsh|fish|powershell)`'68 # Some Go/staticcheck versions in the test matrix don't trigger staticcheck warnings69 # on type assertions/LHS variables in test files, while others do.70 # To avoid build failures on both sides, we allow unused staticcheck nolints in test files.71 - path: '_test\.go'72 linters:73 - nolintlint74 text: 'directive `//nolint:staticcheck` is unused'Fix linter (#2327)Marc Khouzambefore adoption0629892
lines 75–81why, one step back75 settings:76 govet:77 # Disable buildtag check to allow dual build tag syntax (both //go:build and // +build).78 # This is necessary for Go 1.15 compatibility since //go:build was introduced in Go 1.17.79 # This can be removed once Cobra requires Go 1.17 or higher.80 disable:81 - buildtag