Skip to content

Commit a1bdd03

Browse files
committed
Update .golangci.yml
1 parent 816a73a commit a1bdd03

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ linters:
2020
- importas
2121
- ineffassign
2222
- misspell
23+
- modernize
2324
- nakedret
2425
- nilerr
2526
- noctx
@@ -119,6 +120,12 @@ linters:
119120
- G401
120121
- G501
121122
- G505
123+
modernize:
124+
# omitzero rewrites `,omitempty` struct tags to `,omitzero`, which changes
125+
# JSON marshaling semantics for struct/array fields. It is not a mechanical,
126+
# behavior-preserving fix, so keep it disabled.
127+
disable:
128+
- omitzero
122129
nolintlint:
123130
require-explanation: true
124131
require-specific: false

0 commit comments

Comments
 (0)