Skip to content

Commit

Permalink
feat(SPV-1469): fix linter opts
Browse files Browse the repository at this point in the history
  • Loading branch information
dzolt-4chain committed Feb 3, 2025
1 parent 90accfa commit 6709c03
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .golangci-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ run:
build-tags:
- mytag

# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true

# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
# If invoked with -mod=readonly, the go command is disallowed from the implicit
# automatic updating of go.mod described above. Instead, it fails when any changes
Expand All @@ -34,7 +30,6 @@ run:
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: false


# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
Expand Down Expand Up @@ -62,13 +57,12 @@ linters:
- gci
- misspell


linters-settings:
gci:
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(bitcoin-sv/spv-wallet) # Custom section: groups all imports with the specified Prefix.
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(bitcoin-sv/spv-wallet) # Custom section: groups all imports with the specified Prefix.
misspell:
# Correct spellings using locale preferences for US or UK.
# Default is to use a neutral variety of English.
Expand All @@ -85,6 +79,10 @@ issues:
# To list all excluded by default patterns execute `golangci-lint run --help`.
# Default: true
exclude-use-default: false
# Enables exclude of directories:
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
# Default: true
exclude-dirs-use-default: false
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
Expand All @@ -110,6 +108,11 @@ issues:
- .github
- .make
- dist
- vendor
- third_party
- testdata
- Godeps
- builtin

severity:
# Default value is empty string.
Expand Down

0 comments on commit 6709c03

Please sign in to comment.