mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
update golangci-lint (#3590)
This commit is contained in:
parent
a79b92f280
commit
2002b8da85
3 changed files with 4 additions and 8 deletions
2
.github/workflows/go-tests-windows.yml
vendored
2
.github/workflows/go-tests-windows.yml
vendored
|
@ -58,6 +58,6 @@ jobs:
|
|||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v7
|
||||
with:
|
||||
version: v2.0
|
||||
version: v2.1
|
||||
args: --issues-exit-code=1 --timeout 10m
|
||||
only-new-issues: false
|
||||
|
|
2
.github/workflows/go-tests.yml
vendored
2
.github/workflows/go-tests.yml
vendored
|
@ -198,6 +198,6 @@ jobs:
|
|||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v7
|
||||
with:
|
||||
version: v2.0
|
||||
version: v2.1
|
||||
args: --issues-exit-code=1 --timeout 10m
|
||||
only-new-issues: false
|
||||
|
|
|
@ -7,12 +7,6 @@ run:
|
|||
linters:
|
||||
default: all
|
||||
disable:
|
||||
#
|
||||
# DEPRECATED by golangi-lint
|
||||
|
||||
|
||||
# none right now
|
||||
|
||||
#
|
||||
# Redundant
|
||||
#
|
||||
|
@ -25,6 +19,7 @@ linters:
|
|||
# Disabled atm
|
||||
|
||||
- intrange # intrange is a linter to find places where for loops could make use of an integer range.
|
||||
- funcorder
|
||||
|
||||
#
|
||||
# Recommended? (easy)
|
||||
|
@ -172,6 +167,7 @@ linters:
|
|||
- tooManyResultsChecker
|
||||
- docStub
|
||||
- preferFprint
|
||||
- importShadow
|
||||
|
||||
gomoddirectives:
|
||||
replace-allow-list:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue