Skip to content

Commit

Permalink
Fix go version define at linters
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksraiden committed Jan 3, 2025
1 parent a2ea2d3 commit 4193ca2
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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" ]

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4193ca2

Please sign in to comment.