From 03de4bd3d71dbacd943094ef382a578ef447e4ab Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Tue, 10 Dec 2024 05:46:53 +0100 Subject: [PATCH] fix: golangci-lint configuration Fernandez Ludovic --- .golangci.yml | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2e72bba..3bc8296 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,7 +4,7 @@ run: concurrency: 4 # timeout for analysis, e.g. 30s, 5m, default is 1m - deadline: 10m + timeout: 10m # exit code when at least one issue was found, default is 1 issues-exit-code: 1 @@ -12,26 +12,12 @@ run: # include test files or not, default is true tests: true - # list of build tags, all linters use it. Default is empty list. - build-tags: - - # which dirs to skip: they won't be analyzed; - # can use regexp here: generated.*, regexp is applied on full path; - # default value is empty list, but next dirs are always skipped independently - # from this option's value: - # third_party$, testdata$, examples$, Godeps$, builtin$ - skip-dirs: - - # which files to skip: they will be analyzed, but issues from them - # won't be reported. Default value is empty list, but there is - # no need to include all autogenerated files, we confidently recognize - # autogenerated files. If it's not please let us know. - skip-files: # output configuration options output: # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number" - format: tab + formats: + - format: tab # print lines of code with issue, default is true print-issued-lines: true @@ -73,13 +59,9 @@ linters-settings: local-prefixes: github.com/daixiang0/gci linters: - fast: false + disable-all: true enable: - gofmt - gofumpt - goimports - gci - disable-all: true - -issues: - exclude: