зеркало из https://github.com/github/go-pipe.git
Move golangci-lint-action to 3.7.0
This commit is contained in:
Родитель
8bfdd5adaf
Коммит
09d5991272
|
@ -15,7 +15,9 @@ jobs:
|
|||
- name: Vendor modules for later steps.
|
||||
run: |
|
||||
go mod vendor
|
||||
- uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v3.2.0
|
||||
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
|
||||
with:
|
||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
||||
version: v1.49
|
||||
version: v1.55
|
||||
args:
|
||||
-v
|
||||
|
|
|
@ -30,6 +30,18 @@ linters:
|
|||
- lll # we allow any line length
|
||||
- unparam # we allow function calls to name unused parameters
|
||||
- maligned # clear structs are more important than saving a few bytes.
|
||||
|
||||
linters-settings:
|
||||
depguard:
|
||||
rules:
|
||||
main:
|
||||
files:
|
||||
- "$all"
|
||||
- "!$test"
|
||||
deny:
|
||||
- pkg: io/ioutil
|
||||
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
|
||||
|
||||
run:
|
||||
timeout: 5m
|
||||
skip-dirs:
|
||||
|
|
Загрузка…
Ссылка в новой задаче