Skip to content

Commit ee953d5

Browse files
committed
[chore]: enable gofumpt formatter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 8da1f98 commit ee953d5

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.golangci.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,27 @@ linters:
2828
- builtinShadow
2929
- commentedOutCode
3030
- deferInLoop
31+
- deprecatedComment
32+
- elseif
3133
- emptyFallthrough
34+
- emptyStringTest
3235
- exitAfterDefer
36+
- filepathJoin
3337
- hugeParam
38+
- ifElseChain
3439
- importShadow
3540
- nestingReduce
41+
- octalLiteral
3642
- offBy1
3743
- paramTypeCombine
3844
- rangeValCopy
45+
- redundantSprint
3946
- regexpMust
4047
- regexpSimplify
4148
- sloppyReassign
49+
- stringXbytes
4250
- typeDefFirst
51+
- typeSwitchVar
4352
- unlambda
4453
- unnamedResult
4554
- whyNoLint
@@ -193,9 +202,6 @@ linters:
193202
- legacy
194203
- std-error-handling
195204
rules:
196-
- linters:
197-
- staticcheck
198-
text: ".*.VolumeSizeLimit is deprecated:"
199205
- linters:
200206
- gosec
201207
path: _test\.go
@@ -206,6 +212,7 @@ formatters:
206212
enable:
207213
- gci
208214
- gofmt
215+
- gofumpt
209216
settings:
210217
gci:
211218
sections:
@@ -214,5 +221,7 @@ formatters:
214221
- prefix(github.com/open-telemetry/opentelemetry-operator)
215222
gofmt:
216223
simplify: true
224+
gofumpt:
225+
extra-rules: true
217226
exclusions:
218227
generated: lax

0 commit comments

Comments
 (0)