@@ -122,7 +122,7 @@ linters:
122
122
- wsl
123
123
- zerologlint
124
124
125
- # Disable specific linter
125
+ # Disable specific linter.
126
126
# https://golangci-lint.run/usage/linters/#disabled-by-default
127
127
disable :
128
128
- asasalint
@@ -268,7 +268,7 @@ linters:
268
268
# Default: 10
269
269
max-complexity : 10
270
270
# The maximal average package complexity.
271
- # If it's higher than 0.0 (float) the check is enabled
271
+ # If it's higher than 0.0 (float) the check is enabled.
272
272
# Default: 0.0
273
273
package-average : 0.5
274
274
@@ -281,7 +281,7 @@ linters:
281
281
- var
282
282
- func
283
283
284
- # If true, underscore vars (vars with "_" as the name) will be ignored at all checks
284
+ # If true, underscore vars (vars with "_" as the name) will be ignored at all checks.
285
285
# Default: false (underscore vars are not ignored)
286
286
ignore-underscore-vars : false
287
287
@@ -297,15 +297,15 @@ linters:
297
297
# Default: true (disabled)
298
298
disable-dec-num-check : false
299
299
300
- # If true, type declarations will be ignored for dec num check
300
+ # If true, type declarations will be ignored for dec num check.
301
301
# Default: false (type statements are not ignored)
302
302
disable-type-dec-num-check : false
303
303
304
- # If true, const declarations will be ignored for dec num check
304
+ # If true, const declarations will be ignored for dec num check.
305
305
# Default: false (const statements are not ignored)
306
306
disable-const-dec-num-check : false
307
307
308
- # If true, var declarations will be ignored for dec num check
308
+ # If true, var declarations will be ignored for dec num check.
309
309
# Default: false (var statements are not ignored)
310
310
disable-var-dec-num-check : false
311
311
@@ -430,7 +430,7 @@ linters:
430
430
# See the https://github.com/polyfloyd/go-errorlint for caveats.
431
431
# Default: true
432
432
errorf : false
433
- # Permit more than 1 %w verb, valid per Go 1.20 (Requires errorf:true)
433
+ # Permit more than 1 %w verb, valid per Go 1.20 (requires ` errorf: true`).
434
434
# Default: true
435
435
errorf-multi : false
436
436
# Check for plain type assertions and type switches.
@@ -510,7 +510,7 @@ linters:
510
510
# Optional message that gets included in error reports.
511
511
- pattern : ^fmt\.Print.*$
512
512
msg : Do not commit print statements.
513
- # Alternatively, put messages at the end of the regex, surrounded by `(# )?`
513
+ # Alternatively, put messages at the end of the regex, surrounded by `(# )?`.
514
514
# Escape any special characters. Those messages get included in error reports.
515
515
- pattern : ' fmt\.Print.*(# Do not commit print statements\.)?'
516
516
# Forbid spew Dump, whether it is called as function or method.
@@ -573,11 +573,11 @@ linters:
573
573
# Default: false
574
574
suppress-async-assertion : true
575
575
576
- # Suppress warning for comparing values from different types, like `int32` and `uint32`
576
+ # Suppress warning for comparing values from different types, like `int32` and `uint32`.
577
577
# Default: false
578
578
suppress-type-compare-assertion : true
579
579
580
- # Trigger warning for ginkgo focus containers like `FDescribe`, `FContext`, `FWhen` or `FIt`
580
+ # Trigger warning for ginkgo focus containers like `FDescribe`, `FContext`, `FWhen` or `FIt`.
581
581
# Default: false
582
582
forbid-focus-container : true
583
583
@@ -591,7 +591,7 @@ linters:
591
591
force-expect-to : true
592
592
593
593
# Best effort validation of async intervals (timeout and polling).
594
- # Ignored the suppress-async-assertion is true.
594
+ # Ignored the ` suppress-async-assertion` is true.
595
595
# Default: false
596
596
validate-async-intervals : true
597
597
@@ -607,7 +607,7 @@ linters:
607
607
# Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
608
608
# Default: true
609
609
default-signifies-exhaustive : false
610
- # Include shared interfaces in the exhaustiviness check.
610
+ # Include shared interfaces in the exhaustiveness check.
611
611
# Default: false
612
612
include-shared-interfaces : true
613
613
@@ -629,10 +629,10 @@ linters:
629
629
# Search also for duplicated numbers.
630
630
# Default: false
631
631
numbers : true
632
- # Minimum value, only works with goconst.numbers
632
+ # Minimum value, only works with ` goconst.numbers`.
633
633
# Default: 3
634
634
min : 2
635
- # Maximum value, only works with goconst.numbers
635
+ # Maximum value, only works with ` goconst.numbers`.
636
636
# Default: 3
637
637
max : 2
638
638
# Ignore when constant is not used as function argument.
@@ -1105,7 +1105,7 @@ linters:
1105
1105
1106
1106
# Settings passed to gocritic.
1107
1107
# The settings key is the name of a supported gocritic checker.
1108
- # The list of supported checkers can be find in https://go-critic.com/overview.
1108
+ # The list of supported checkers can be found at https://go-critic.com/overview.
1109
1109
settings :
1110
1110
# Must be valid enabled check name.
1111
1111
captLocal :
@@ -1244,19 +1244,19 @@ linters:
1244
1244
# for example:
1245
1245
AUTHOR : .*@mycompany\.com
1246
1246
# The template used for checking.
1247
- # Put here copyright header template for source code files
1247
+ # Put here copyright header template for source code files.
1248
1248
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
1249
1249
# Default: ""
1250
1250
template : |-
1251
1251
{{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
1252
1252
SPDX-License-Identifier: Apache-2.0
1253
-
1253
+
1254
1254
Licensed under the Apache License, Version 2.0 (the "License");
1255
1255
you may not use this file except in compliance with the License.
1256
1256
You may obtain a copy of the License at:
1257
-
1257
+
1258
1258
http://www.apache.org/licenses/LICENSE-2.0
1259
-
1259
+
1260
1260
Unless required by applicable law or agreed to in writing, software
1261
1261
distributed under the License is distributed on an "AS IS" BASIS,
1262
1262
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -1504,13 +1504,13 @@ linters:
1504
1504
# Regexp pattern to find potential directory traversal.
1505
1505
# Default: "http\\.Dir\\(\"\\/\"\\)|http\\.Dir\\('\\/'\\)"
1506
1506
pattern : " custom\\ .Dir\\ (\\ )"
1507
- # Maximum allowed permissions mode for os.Mkdir and os.MkdirAll
1507
+ # Maximum allowed permissions mode for os.Mkdir and os.MkdirAll.
1508
1508
# Default: "0750"
1509
1509
G301 : " 0750"
1510
- # Maximum allowed permissions mode for os.OpenFile and os.Chmod
1510
+ # Maximum allowed permissions mode for os.OpenFile and os.Chmod.
1511
1511
# Default: "0600"
1512
1512
G302 : " 0600"
1513
- # Maximum allowed permissions mode for os.WriteFile and ioutil.WriteFile
1513
+ # Maximum allowed permissions mode for os.WriteFile and ioutil.WriteFile.
1514
1514
# Default: "0600"
1515
1515
G306 : " 0600"
1516
1516
@@ -1546,7 +1546,7 @@ linters:
1546
1546
# Default: false
1547
1547
disable-all : true
1548
1548
# Enable analyzers by name.
1549
- # (in addition to default:
1549
+ # (In addition to default:
1550
1550
# appends, asmdecl, assign, atomic, bools, buildtag, cgocall, composites, copylocks, defers, directive, errorsas,
1551
1551
# framepointer, httpresponse, ifaceassert, loopclosure, lostcancel, nilfunc, printf, shift, sigchanyzer, slog,
1552
1552
# stdmethods, stringintconv, structtag, testinggoroutine, tests, timeformat, unmarshal, unreachable, unsafeptr,
@@ -1646,7 +1646,7 @@ linters:
1646
1646
# Default: false
1647
1647
enable-all : true
1648
1648
# Disable analyzers by name.
1649
- # (in addition to default
1649
+ # (In addition to default
1650
1650
# atomicalign, deepequalerrors, fieldalignment, findcall, nilness, reflectvaluecompare, shadow, sortslice,
1651
1651
# timeformat, unusedwrite
1652
1652
# ).
@@ -1713,16 +1713,16 @@ linters:
1713
1713
# Default: false
1714
1714
strict : true
1715
1715
unusedresult :
1716
- # Comma-separated list of functions whose results must be used
1717
- # (in addition to default:
1716
+ # Comma-separated list of functions whose results must be used.
1717
+ # (In addition to default:
1718
1718
# context.WithCancel, context.WithDeadline, context.WithTimeout, context.WithValue, errors.New, fmt.Errorf,
1719
1719
# fmt.Sprint, fmt.Sprintf, sort.Reverse
1720
1720
# ).
1721
1721
# Default: []
1722
1722
funcs :
1723
1723
- pkg.MyFunc
1724
- # Comma-separated list of names of methods of type func() string whose results must be used
1725
- # (in addition to default Error,String)
1724
+ # Comma-separated list of names of methods of type func() string whose results must be used.
1725
+ # (In addition to default Error,String).
1726
1726
# Default: []
1727
1727
stringmethods :
1728
1728
- MyMethod
@@ -1788,7 +1788,7 @@ linters:
1788
1788
alias : autoscalingv1alpha1
1789
1789
# You can specify the package path by regular expression,
1790
1790
# and alias by regular expression expansion syntax like below.
1791
- # see https://github.com/julz/importas#use-regular-expression for details
1791
+ # See https://github.com/julz/importas#use-regular-expression for details.
1792
1792
- pkg : knative.dev/serving/pkg/apis/(\w+)/(v[\w\d]+)
1793
1793
alias : $1$2
1794
1794
# An explicit empty alias can be used to ensure no aliases are used for a package.
@@ -1927,14 +1927,14 @@ linters:
1927
1927
- assign
1928
1928
# List of numbers to exclude from analysis.
1929
1929
# The numbers should be written as string.
1930
- # Values always ignored: "1", "1.0", "0" and "0.0"
1930
+ # Values always ignored: "1", "1.0", "0" and "0.0".
1931
1931
# Default: []
1932
1932
ignored-numbers :
1933
1933
- ' 0666'
1934
1934
- ' 0755'
1935
1935
- ' 42'
1936
1936
# List of file patterns to exclude from analysis.
1937
- # Values always ignored: `.+_test.go`
1937
+ # Values always ignored: `.+_test.go`.
1938
1938
# Default: []
1939
1939
ignored-files :
1940
1940
- ' magic1_.+\.go$'
@@ -1989,7 +1989,7 @@ linters:
1989
1989
- unsafeptr
1990
1990
1991
1991
nlreturn :
1992
- # Size of the block (including return statement that is still "OK")
1992
+ # Size of the block (including return statement that is still "OK"),
1993
1993
# so no return split required.
1994
1994
# Default: 1
1995
1995
block-size : 2
@@ -2691,7 +2691,7 @@ linters:
2691
2691
exclude : [""]
2692
2692
2693
2693
rowserrcheck :
2694
- # database/sql is always checked
2694
+ # database/sql is always checked.
2695
2695
# Default: []
2696
2696
packages :
2697
2697
- github.com/jmoiron/sqlx
@@ -3277,7 +3277,7 @@ linters:
3277
3277
# Align and sort can be used together or separately.
3278
3278
#
3279
3279
# Whether enable align. If true, the struct tags will be aligned.
3280
- # e .g.:
3280
+ # E .g.:
3281
3281
# type FooBar struct {
3282
3282
# Bar string `json:"bar" validate:"required"`
3283
3283
# FooFoo int8 `json:"foo_foo" validate:"required"`
@@ -3291,7 +3291,7 @@ linters:
3291
3291
align : false
3292
3292
# Whether enable tags sort.
3293
3293
# If true, the tags will be sorted by name in ascending order.
3294
- # e .g.: `xml:"bar" json:"bar" validate:"required"` -> `json:"bar" validate:"required" xml:"bar"`
3294
+ # E .g.: `xml:"bar" json:"bar" validate:"required"` -> `json:"bar" validate:"required" xml:"bar"`.
3295
3295
# Default: true
3296
3296
sort : false
3297
3297
# Specify the order of tags, the other tags will be sorted by name.
@@ -3957,7 +3957,7 @@ formatters:
3957
3957
gci :
3958
3958
# Section configuration to compare against.
3959
3959
# Section names are case-insensitive and may contain parameters in ().
3960
- # The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`,
3960
+ # The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`.
3961
3961
# If `custom-order` is `true`, it follows the order of `sections` option.
3962
3962
# Default: ["standard", "default"]
3963
3963
sections :
0 commit comments