From 4193ca2f4db1246bd59186474b5239cee88e4bdb Mon Sep 17 00:00:00 2001 From: Aleks Lozovyuk Date: Fri, 3 Jan 2025 17:51:49 +0200 Subject: [PATCH] Fix go version define at linters --- .golangci.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index f347c05..040c3e3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -42,15 +42,24 @@ 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: true - # 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: + + # Select the Go version to target. The default is '1.13'. + go: "1.23" + + # Allow multiple parallel golangci-lint instances running. + # If false, golangci-lint acquires file lock on start. + # Default: false + allow-parallel-runners: true + + # Allow multiple golangci-lint instances running, but serialize them around a lock. + # If false, golangci-lint exits with an error if it fails to acquire file lock on start. + # Default: false + allow-serial-runners: true # output configuration options output: @@ -286,8 +295,6 @@ linters-settings: truncate: "32" gosimple: - # Select the Go version to target. The default is '1.13'. - go: "1.23" # https://staticcheck.io/docs/options#checks checks: [ "all" ] @@ -424,14 +431,10 @@ linters-settings: severity: warning staticcheck: - # Select the Go version to target. The default is '1.13'. - go: "1.23" # https://staticcheck.io/docs/options#checks checks: [ "all" ] stylecheck: - # Select the Go version to target. The default is '1.13'. - go: "1.23" # https://staticcheck.io/docs/options#checks checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ] # https://staticcheck.io/docs/options#dot_import_whitelist @@ -563,6 +566,10 @@ issues: # The default value is false. If set to true exclude and exclude-rules # regular expressions become case sensitive. exclude-case-sensitive: false + + # default is true. Enables skipping of directories: + # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ + exclude-dirs-use-default: true # The list of ids of default excludes to include or disable. By default it's empty. include: