From b0bf4eb0cd024e900042b3b28615e479fbdae900 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 29 Nov 2023 23:11:46 -0300 Subject: [PATCH] build: golangci config --- .golangci.yaml | 4 ++++ Taskfile.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 8a9deb29c..e81fdf507 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -15,6 +15,10 @@ linters: - misspell - depguard linters-settings: + staticcheck: + checks: + - all + - "-SA1019" forbidigo: forbid: - 'ioutil\.*' diff --git a/Taskfile.yml b/Taskfile.yml index e348b91fc..d4cfc3103 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -53,7 +53,7 @@ tasks: lint: desc: Lint the code with golangci-lint cmds: - - golangci-lint run ./... + - golangci-lint run --config ./.golangci.yaml ./... ci: desc: Run all CI steps