From 78f03ee35b00e029d359c45c1d41dd39f88a7cfe Mon Sep 17 00:00:00 2001 From: Damien Mathieu <42@dmathieu.com> Date: Mon, 8 Jul 2024 16:33:21 +0200 Subject: [PATCH] Fix all lint deprecations (#581) --- .golangci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 61f85652..71b26084 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,9 +18,10 @@ run: # from this option's value (see skip-dirs-use-default). skip-dirs: - # default is true. Enables skipping of directories: - # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ - skip-dirs-use-default: false + issues: + # default is true. Enables skipping of directories: + # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ + exclude-dirs-use-default: false # which files to skip: they will be analyzed, but issues from them # won't be reported. Default value is empty list, but there is @@ -45,7 +46,7 @@ run: # output configuration options output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" - format: colored-line-number + formats: colored-line-number # print lines of code with issue, default is true print-issued-lines: true @@ -57,7 +58,7 @@ output: linters-settings: govet: # report about shadowed variables - check-shadowing: true + shadow: true # settings per analyzer settings: