@@ -138,7 +138,7 @@ output:
138
138
uniq-by-line : false
139
139
140
140
# Add a prefix to the output file references. Default is no prefix.
141
- path-prefix : " "
141
+ path-prefix : ' '
142
142
143
143
# Sort results by: filepath, line and column.
144
144
sort-results : true
@@ -299,7 +299,7 @@ linters-settings:
299
299
- NOTE
300
300
- OPTIMIZE
301
301
- TODO
302
- - " @todo"
302
+ - ' @todo'
303
303
304
304
# goerr113:
305
305
@@ -309,7 +309,7 @@ linters-settings:
309
309
310
310
gofumpt :
311
311
# Select the Go version to target.
312
- lang-version : " 1.21"
312
+ lang-version : ' 1.21'
313
313
314
314
# Module path which contains the source code being formatted.
315
315
# Default: ""
@@ -341,8 +341,8 @@ linters-settings:
341
341
# List of numbers to exclude from analysis. The numbers should be written as
342
342
# string. Values always ignored: "1", "1.0", "0" and "0.0" Default: []
343
343
ignored-numbers :
344
- - " 0666"
345
- - " 0755"
344
+ - ' 0666'
345
+ - ' 0755'
346
346
347
347
# List of file patterns to exclude from analysis.
348
348
# Values always ignored: `.+_test.go`
@@ -468,8 +468,7 @@ linters-settings:
468
468
469
469
# List of aliases
470
470
# Default: []
471
- alias :
472
- []
471
+ alias : []
473
472
# # Using `servingv1` alias for `knative.dev/serving/pkg/apis/serving/v1` package.
474
473
# - pkg: knative.dev/serving/pkg/apis/serving/v1
475
474
# alias: servingv1
@@ -547,7 +546,7 @@ linters-settings:
547
546
staticcheck :
548
547
# Select the Go version to target.
549
548
# Default: "1.13"
550
- go : " 1.21"
549
+ go : ' 1.21'
551
550
552
551
# https://staticcheck.io/docs/options#checks
553
552
# https://staticcheck.io/docs/checks/
@@ -558,7 +557,7 @@ linters-settings:
558
557
stylecheck :
559
558
# Select the Go version to target.
560
559
# Default: 1.13
561
- go : " 1.21"
560
+ go : ' 1.21'
562
561
563
562
# https://staticcheck.io/docs/options#checks
564
563
# https://staticcheck.io/docs/checks/
@@ -691,8 +690,7 @@ linters-settings:
691
690
692
691
# An array of strings that specify regular expressions of interfaces to ignore.
693
692
# Default: []
694
- ignoreInterfaceRegexps :
695
- []
693
+ ignoreInterfaceRegexps : []
696
694
# - ^(?i)c(?-i)ach(ing|e)
697
695
698
696
wsl :
@@ -756,11 +754,11 @@ issues:
756
754
exclude :
757
755
- should have a package comment
758
756
- declaration of "(err|ctx)" shadows declaration at
759
- - " `Println` arg list ends with redundant newline"
757
+ - ' `Println` arg list ends with redundant newline'
760
758
- Println arg list ends with redundant newline
761
759
- type jsonschema.Schema has no field or method ValidateBytes
762
760
- declarations should never be cuddled
763
- - " unnamedResult: consider giving a name to these results"
761
+ - ' unnamedResult: consider giving a name to these results'
764
762
765
763
# Excluding configuration per-path, per-linter, per-text and per-source
766
764
exclude-rules :
@@ -785,7 +783,7 @@ issues:
785
783
- gomnd
786
784
source : lint:allow_raw_number
787
785
788
- - text : " commentedOutCode: may want to remove commented-out code"
786
+ - text : ' commentedOutCode: may want to remove commented-out code'
789
787
linters :
790
788
- gocritic
791
789
source : lint:allow_commented
@@ -846,6 +844,11 @@ issues:
846
844
- unused
847
845
source : lint:allow_unused
848
846
847
+ - text : (is a program, not an importable package)
848
+ linters :
849
+ - typecheck
850
+ source : lint:allow_importable_program
851
+
849
852
# Independently from option `exclude` we use default exclude patterns, it can be disabled by this
850
853
# option. To list all excluded by default patterns execute `golangci-lint run --help`. Default
851
854
# value for this option is true.
0 commit comments