1515 build-tags :
1616 - mytag
1717
18- # which dirs to skip: issues from them won't be reported;
19- # can use regexp here: generated.*, regexp is applied on full path;
20- # default value is empty list, but default dirs are skipped independently
21- # from this option's value (see skip-dirs-use-default).
22- # "/" will be replaced by current OS file path separator to properly work
23- # on Windows.
24- skip-dirs :
25- - " ./include/*"
26-
27- # default is true. Enables skipping of directories:
28- # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
29- skip-dirs-use-default : true
30-
31- # which files to skip: they will be analyzed, but issues from them
32- # won't be reported. Default value is empty list, but there is
33- # no need to include all autogenerated files, we confidently recognize
34- # autogenerated files. If it's not please let us know.
35- # "/" will be replaced by current OS file path separator to properly work
36- # on Windows.
37- skip-files :
38- - " .*\\ .my\\ .go$"
39- - lib/bad.go
40-
4118 # Allow multiple parallel golangci-lint instances running.
4219 # If false (default) - golangci-lint acquires file lock on start.
4320 allow-parallel-runners : false
4421
22+ go : " 1.23.5"
23+
4524
4625# output configuration options
4726output :
48- # colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
49- # default is "colored-line-number"
50- format : colored-line-number
51-
5227 # print lines of code with issue, default is true
5328 print-issued-lines : true
5429
5530 # print linter name in the end of issue text, default is true
5631 print-linter-name : true
5732
58- # make issues output unique by line, default is true
59- uniq-by-line : true
60-
6133 # add a prefix to the output file references; default is no prefix
6234 path-prefix : " "
6335
@@ -147,10 +119,13 @@ linters-settings:
147119 statements : 40
148120
149121 gci :
150- # put imports beginning with prefix after 3rd-party packages;
151- # only support one prefix
152- # if not set, use goimports.local-prefixes
153- local-prefixes : github.com/org/project
122+ sections :
123+ - standard
124+ - default
125+ - prefix(github.com/stackitcloud/external-dns-stackit-webhook)
126+
127+ goimports :
128+ local-prefixes : github.com/stackitcloud/external-dns-stackit-webhook
154129
155130 gocognit :
156131 # minimal code complexity to report, 30 by default (but we recommend 10-20)
@@ -268,13 +243,6 @@ linters-settings:
268243 # simplify code: gofmt with `-s` option, true by default
269244 simplify : true
270245
271- gofumpt :
272- # Select the Go version to target. The default is `1.15`.
273- lang-version : " 1.15"
274-
275- # Choose whether or not to use the extra rules that are disabled
276- # by default
277- extra-rules : false
278246
279247 goheader :
280248 values :
@@ -305,11 +273,6 @@ linters-settings:
305273 template-path :
306274 # also as alternative of directive 'template' you may put the path to file with the template source
307275
308- goimports :
309- # put imports beginning with prefix after 3rd-party packages;
310- # it's a comma-separated list of prefixes
311- local-prefixes : github.com/org/project
312-
313276 golint :
314277 # minimal confidence for issues, default is 0.8
315278 min-confidence : 0.8
@@ -383,15 +346,10 @@ linters-settings:
383346 truncate : " 32"
384347
385348 gosimple :
386- # Select the Go version to target. The default is '1.13'.
387- go : " 1.15"
388349 # https://staticcheck.io/docs/options#checks
389350 checks : [ "all" ]
390351
391352 govet :
392- # report about shadowed variables
393- check-shadowing : true
394-
395353 # settings per analyzer
396354 settings :
397355 printf : # analyzer name, run `go tool vet help` to see all analyzers
@@ -405,9 +363,9 @@ linters-settings:
405363 # run `go tool vet help` to see all analyzers
406364 enable :
407365 - atomicalign
408- enable-all : false
409- disable :
410366 - shadow
367+
368+ enable-all : false
411369 disable-all : false
412370
413371 depguard :
@@ -551,14 +509,10 @@ linters-settings:
551509 allowFloats : " 0.0,0.,1.0,1.,2.0,2."
552510
553511 staticcheck :
554- # Select the Go version to target. The default is '1.13'.
555- go : " 1.15"
556512 # https://staticcheck.io/docs/options#checks
557513 checks : [ "all" ]
558514
559515 stylecheck :
560- # Select the Go version to target. The default is '1.13'.
561- go : " 1.15"
562516 # https://staticcheck.io/docs/options#checks
563517 checks : [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
564518 # https://staticcheck.io/docs/options#dot_import_whitelist
@@ -600,11 +554,6 @@ linters-settings:
600554 name : true
601555 begin : true
602556
603- tenv :
604- # The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures.
605- # By default, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked.
606- all : false
607-
608557 unparam :
609558 # Inspect exported functions, default is false. Set to true if no external program/library imports your code.
610559 # XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
@@ -613,8 +562,6 @@ linters-settings:
613562 check-exported : false
614563
615564 unused :
616- # Select the Go version to target. The default is '1.13'.
617- go : " 1.15"
618565
619566 varnamelen :
620567 # The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
@@ -674,7 +621,6 @@ linters:
674621 - errname
675622 - errorlint
676623 - exhaustive
677- - exportloopref
678624 - forcetypeassert
679625 - funlen
680626 - gci
@@ -685,7 +631,6 @@ linters:
685631 - godot
686632 - godox
687633 - gofmt
688- - gofumpt
689634 - goheader
690635 - gomoddirectives
691636 - gomodguard
@@ -708,12 +653,12 @@ linters:
708653 - predeclared
709654 - promlinter
710655 - staticcheck
711- - tenv
712656 - thelper
713657 - tparallel
714658 - unconvert
715659 - unparam
716660 - unused
661+ - usetesting
717662 - whitespace
718663 - paralleltest
719664 enable-all : false
@@ -726,14 +671,11 @@ linters:
726671 - goimports
727672 - lll
728673 - stylecheck
729- - gomnd
730674 - testpackage
731675 - wrapcheck
732- - golint
733- - scopelint
734676 - typecheck
735677 - tagliatelle
736- - goerr113
678+ - err113
737679 - gochecknoglobals
738680 - wsl
739681 - revive
@@ -819,12 +761,10 @@ issues:
819761 # Default is false.
820762 new : false
821763
822- # Show only new issues created after git revision `REV`
823- new-from-rev : REV
824-
825764 # Fix found issues (if it's supported by the linter)
826765 fix : true
827766
767+
828768severity :
829769 # Default value is empty string.
830770 # Set the default severity for issues. If severity rules are defined and the issues
0 commit comments