Skip to content

Commit

Permalink
update: .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianToledano committed Aug 7, 2024
1 parent 756134a commit 7a81e00
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ run:
linters:
disable-all: true
enable:
- depguard
- dogsled
- errcheck
- errorlint
- exportloopref
- gci
- goconst
- gocritic
- gofumpt
Expand All @@ -21,9 +23,10 @@ linters:
- misspell
- nakedret
- nolintlint
- staticcheck
- revive
- staticcheck
- stylecheck
- thelper
- typecheck
- unconvert
- unused
Expand Down Expand Up @@ -54,6 +57,18 @@ issues:
max-same-issues: 10000

linters-settings:
gci:
custom-order: true
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(cosmossdk.io)
- prefix(github.com/cosmos/cosmos-sdk)
- prefix(github.com/cosmos/rosetta)
revive:
rules:
- name: redefines-builtin-id
disabled: true
gosec:
# To select a subset of rules to run.
# Available rules: https://github.com/securego/gosec#available-rules
Expand Down

0 comments on commit 7a81e00

Please sign in to comment.