Skip to content
Myr

.golangci.yml

This file

Path

.golangci.yml

81 lines · 2.1 KiB · YAML

Last changed by

landed by oscabrieladbc881

History of this file

Take it

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 back
1# Copyright 2013-2023 The Cobra Authors

add missing license headers (#1809)Unai Martinez-Corralbefore adoption6d978a9

lines 2–14why, one step back
2#
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.14

chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4

lines 15–16why, one step back
15version: "2"
16

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 17why, one step back
17run:

chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4

line 18why, one step back
18 timeout: 5m

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 19why, one step back
19

chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4

lines 20–24why, one step back
20formatters:
21 enable:22 - gofmt23 - goimports24

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 25why, one step back
25linters:

chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4

line 26why, one step back
26 default: none

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 27–36why, one step back
27 enable:
28 #- bodyclose29 #- depguard30 #- dogsled31 #- dupl32 - errcheck33 #- exhaustive34 #- funlen35 #- gochecknoinits36 - goconst

More linting (#2099)Ville Skyttäbefore adoption6b5f577

line 37why, one step back
37 - gocritic

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 38–39why, one step back
38 #- gocyclo
39 #- goprintffuncname

Address golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0

line 40why, one step back
40 - gosec

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 41–43why, one step back
41 - govet
42 - ineffassign43 #- lll

Address golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0

line 44why, one step back
44 - misspell

chore(golangci-lint): upgrade to v2Ville Skyttäbefore adoption75790e4

line 45why, one step back
45 #- mnd

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 46–47why, one step back
46 #- nakedret
47 #- noctx

Address golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0

line 48why, one step back
48 - nolintlint

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 49why, one step back
49 #- rowserrcheck

Address golangci-lint deprecation warnings, enable some more linters (#2152)Ville Skyttäbefore adoptione94f6d0

line 50why, one step back
50 - staticcheck

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

lines 51–52why, one step back
51 - unconvert
52 #- unparam

golangci: enable 'unused' and disable deprecated replaced by it (#1983)Unai Martinez-Corralbefore adoption66b215b

line 53why, one step back
53 - unused

Add Polygon Edge as a project using Cobra (#1672)Miloš Živkovićbefore adoption89d7b83

line 54why, one step back
54 #- whitespace

chore(golangci-lint): add some exclusion presetsVille Skyttäbefore adoptionc8289c1

lines 55–59why, one step back
55 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 back
75 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