15
15
build-tags :
16
16
- mytag
17
17
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
-
41
18
# Allow multiple parallel golangci-lint instances running.
42
19
# If false (default) - golangci-lint acquires file lock on start.
43
20
allow-parallel-runners : false
44
21
22
+ go : " 1.23.5"
23
+
45
24
46
25
# output configuration options
47
26
output :
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
-
52
27
# print lines of code with issue, default is true
53
28
print-issued-lines : true
54
29
55
30
# print linter name in the end of issue text, default is true
56
31
print-linter-name : true
57
32
58
- # make issues output unique by line, default is true
59
- uniq-by-line : true
60
-
61
33
# add a prefix to the output file references; default is no prefix
62
34
path-prefix : " "
63
35
@@ -147,10 +119,13 @@ linters-settings:
147
119
statements : 40
148
120
149
121
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
154
129
155
130
gocognit :
156
131
# minimal code complexity to report, 30 by default (but we recommend 10-20)
@@ -268,13 +243,6 @@ linters-settings:
268
243
# simplify code: gofmt with `-s` option, true by default
269
244
simplify : true
270
245
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
278
246
279
247
goheader :
280
248
values :
@@ -305,11 +273,6 @@ linters-settings:
305
273
template-path :
306
274
# also as alternative of directive 'template' you may put the path to file with the template source
307
275
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
-
313
276
golint :
314
277
# minimal confidence for issues, default is 0.8
315
278
min-confidence : 0.8
@@ -383,15 +346,10 @@ linters-settings:
383
346
truncate : " 32"
384
347
385
348
gosimple :
386
- # Select the Go version to target. The default is '1.13'.
387
- go : " 1.15"
388
349
# https://staticcheck.io/docs/options#checks
389
350
checks : [ "all" ]
390
351
391
352
govet :
392
- # report about shadowed variables
393
- check-shadowing : true
394
-
395
353
# settings per analyzer
396
354
settings :
397
355
printf : # analyzer name, run `go tool vet help` to see all analyzers
@@ -405,9 +363,9 @@ linters-settings:
405
363
# run `go tool vet help` to see all analyzers
406
364
enable :
407
365
- atomicalign
408
- enable-all : false
409
- disable :
410
366
- shadow
367
+
368
+ enable-all : false
411
369
disable-all : false
412
370
413
371
depguard :
@@ -551,14 +509,10 @@ linters-settings:
551
509
allowFloats : " 0.0,0.,1.0,1.,2.0,2."
552
510
553
511
staticcheck :
554
- # Select the Go version to target. The default is '1.13'.
555
- go : " 1.15"
556
512
# https://staticcheck.io/docs/options#checks
557
513
checks : [ "all" ]
558
514
559
515
stylecheck :
560
- # Select the Go version to target. The default is '1.13'.
561
- go : " 1.15"
562
516
# https://staticcheck.io/docs/options#checks
563
517
checks : [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
564
518
# https://staticcheck.io/docs/options#dot_import_whitelist
@@ -600,11 +554,6 @@ linters-settings:
600
554
name : true
601
555
begin : true
602
556
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
-
608
557
unparam :
609
558
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
610
559
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
@@ -613,8 +562,6 @@ linters-settings:
613
562
check-exported : false
614
563
615
564
unused :
616
- # Select the Go version to target. The default is '1.13'.
617
- go : " 1.15"
618
565
619
566
varnamelen :
620
567
# The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
@@ -674,7 +621,6 @@ linters:
674
621
- errname
675
622
- errorlint
676
623
- exhaustive
677
- - exportloopref
678
624
- forcetypeassert
679
625
- funlen
680
626
- gci
@@ -685,7 +631,6 @@ linters:
685
631
- godot
686
632
- godox
687
633
- gofmt
688
- - gofumpt
689
634
- goheader
690
635
- gomoddirectives
691
636
- gomodguard
@@ -708,12 +653,12 @@ linters:
708
653
- predeclared
709
654
- promlinter
710
655
- staticcheck
711
- - tenv
712
656
- thelper
713
657
- tparallel
714
658
- unconvert
715
659
- unparam
716
660
- unused
661
+ - usetesting
717
662
- whitespace
718
663
- paralleltest
719
664
enable-all : false
@@ -726,14 +671,11 @@ linters:
726
671
- goimports
727
672
- lll
728
673
- stylecheck
729
- - gomnd
730
674
- testpackage
731
675
- wrapcheck
732
- - golint
733
- - scopelint
734
676
- typecheck
735
677
- tagliatelle
736
- - goerr113
678
+ - err113
737
679
- gochecknoglobals
738
680
- wsl
739
681
- revive
@@ -819,12 +761,10 @@ issues:
819
761
# Default is false.
820
762
new : false
821
763
822
- # Show only new issues created after git revision `REV`
823
- new-from-rev : REV
824
-
825
764
# Fix found issues (if it's supported by the linter)
826
765
fix : true
827
766
767
+
828
768
severity :
829
769
# Default value is empty string.
830
770
# Set the default severity for issues. If severity rules are defined and the issues
0 commit comments