Skip to content

Commit f794700

Browse files
committed
docs: cleanup config reference
1 parent 3f0afe4 commit f794700

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

.golangci.next.reference.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ linters:
121121
- wsl
122122
- zerologlint
123123

124-
# Disable specific linter
124+
# Disable specific linter.
125125
# https://golangci-lint.run/usage/linters/#disabled-by-default
126126
disable:
127127
- asasalint
@@ -266,7 +266,7 @@ linters:
266266
# Default: 10
267267
max-complexity: 10
268268
# The maximal average package complexity.
269-
# If it's higher than 0.0 (float) the check is enabled
269+
# If it's higher than 0.0 (float) the check is enabled.
270270
# Default: 0.0
271271
package-average: 0.5
272272

@@ -279,7 +279,7 @@ linters:
279279
- var
280280
- func
281281

282-
# If true, underscore vars (vars with "_" as the name) will be ignored at all checks
282+
# If true, underscore vars (vars with "_" as the name) will be ignored at all checks.
283283
# Default: false (underscore vars are not ignored)
284284
ignore-underscore-vars: false
285285

@@ -295,15 +295,15 @@ linters:
295295
# Default: true (disabled)
296296
disable-dec-num-check: false
297297

298-
# If true, type declarations will be ignored for dec num check
298+
# If true, type declarations will be ignored for dec num check.
299299
# Default: false (type statements are not ignored)
300300
disable-type-dec-num-check: false
301301

302-
# If true, const declarations will be ignored for dec num check
302+
# If true, const declarations will be ignored for dec num check.
303303
# Default: false (const statements are not ignored)
304304
disable-const-dec-num-check: false
305305

306-
# If true, var declarations will be ignored for dec num check
306+
# If true, var declarations will be ignored for dec num check.
307307
# Default: false (var statements are not ignored)
308308
disable-var-dec-num-check: false
309309

@@ -428,7 +428,7 @@ linters:
428428
# See the https://github.com/polyfloyd/go-errorlint for caveats.
429429
# Default: true
430430
errorf: false
431-
# Permit more than 1 %w verb, valid per Go 1.20 (Requires errorf:true)
431+
# Permit more than 1 %w verb, valid per Go 1.20 (requires `errorf: true`).
432432
# Default: true
433433
errorf-multi: false
434434
# Check for plain type assertions and type switches.
@@ -508,7 +508,7 @@ linters:
508508
# Optional message that gets included in error reports.
509509
- pattern: ^fmt\.Print.*$
510510
msg: Do not commit print statements.
511-
# Alternatively, put messages at the end of the regex, surrounded by `(# )?`
511+
# Alternatively, put messages at the end of the regex, surrounded by `(# )?`.
512512
# Escape any special characters. Those messages get included in error reports.
513513
- pattern: 'fmt\.Print.*(# Do not commit print statements\.)?'
514514
# Forbid spew Dump, whether it is called as function or method.
@@ -563,11 +563,11 @@ linters:
563563
# Default: false
564564
suppress-async-assertion: true
565565

566-
# Suppress warning for comparing values from different types, like `int32` and `uint32`
566+
# Suppress warning for comparing values from different types, like `int32` and `uint32`.
567567
# Default: false
568568
suppress-type-compare-assertion: true
569569

570-
# Trigger warning for ginkgo focus containers like `FDescribe`, `FContext`, `FWhen` or `FIt`
570+
# Trigger warning for ginkgo focus containers like `FDescribe`, `FContext`, `FWhen` or `FIt`.
571571
# Default: false
572572
forbid-focus-container: true
573573

@@ -581,7 +581,7 @@ linters:
581581
force-expect-to: true
582582

583583
# Best effort validation of async intervals (timeout and polling).
584-
# Ignored the suppress-async-assertion is true.
584+
# Ignored the `suppress-async-assertion` is true.
585585
# Default: false
586586
validate-async-intervals: true
587587

@@ -597,7 +597,7 @@ linters:
597597
# Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
598598
# Default: true
599599
default-signifies-exhaustive: false
600-
# Include shared interfaces in the exhaustiviness check.
600+
# Include shared interfaces in the exhaustiveness check.
601601
# Default: false
602602
include-shared-interfaces: true
603603

@@ -619,10 +619,10 @@ linters:
619619
# Search also for duplicated numbers.
620620
# Default: false
621621
numbers: true
622-
# Minimum value, only works with goconst.numbers
622+
# Minimum value, only works with `goconst.numbers`.
623623
# Default: 3
624624
min: 2
625-
# Maximum value, only works with goconst.numbers
625+
# Maximum value, only works with `goconst.numbers`.
626626
# Default: 3
627627
max: 2
628628
# Ignore when constant is not used as function argument.
@@ -1095,7 +1095,7 @@ linters:
10951095

10961096
# Settings passed to gocritic.
10971097
# The settings key is the name of a supported gocritic checker.
1098-
# The list of supported checkers can be find in https://go-critic.com/overview.
1098+
# The list of supported checkers can be found at https://go-critic.com/overview.
10991099
settings:
11001100
# Must be valid enabled check name.
11011101
captLocal:
@@ -1234,19 +1234,19 @@ linters:
12341234
# for example:
12351235
AUTHOR: .*@mycompany\.com
12361236
# The template used for checking.
1237-
# Put here copyright header template for source code files
1237+
# Put here copyright header template for source code files.
12381238
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
12391239
# Default: ""
12401240
template: |-
12411241
{{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
12421242
SPDX-License-Identifier: Apache-2.0
1243-
1243+
12441244
Licensed under the Apache License, Version 2.0 (the "License");
12451245
you may not use this file except in compliance with the License.
12461246
You may obtain a copy of the License at:
1247-
1247+
12481248
http://www.apache.org/licenses/LICENSE-2.0
1249-
1249+
12501250
Unless required by applicable law or agreed to in writing, software
12511251
distributed under the License is distributed on an "AS IS" BASIS,
12521252
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -1494,13 +1494,13 @@ linters:
14941494
# Regexp pattern to find potential directory traversal.
14951495
# Default: "http\\.Dir\\(\"\\/\"\\)|http\\.Dir\\('\\/'\\)"
14961496
pattern: "custom\\.Dir\\(\\)"
1497-
# Maximum allowed permissions mode for os.Mkdir and os.MkdirAll
1497+
# Maximum allowed permissions mode for os.Mkdir and os.MkdirAll.
14981498
# Default: "0750"
14991499
G301: "0750"
1500-
# Maximum allowed permissions mode for os.OpenFile and os.Chmod
1500+
# Maximum allowed permissions mode for os.OpenFile and os.Chmod.
15011501
# Default: "0600"
15021502
G302: "0600"
1503-
# Maximum allowed permissions mode for os.WriteFile and ioutil.WriteFile
1503+
# Maximum allowed permissions mode for os.WriteFile and ioutil.WriteFile.
15041504
# Default: "0600"
15051505
G306: "0600"
15061506

@@ -1536,7 +1536,7 @@ linters:
15361536
# Default: false
15371537
disable-all: true
15381538
# Enable analyzers by name.
1539-
# (in addition to default:
1539+
# (In addition to default:
15401540
# appends, asmdecl, assign, atomic, bools, buildtag, cgocall, composites, copylocks, defers, directive, errorsas,
15411541
# framepointer, httpresponse, ifaceassert, loopclosure, lostcancel, nilfunc, printf, shift, sigchanyzer, slog,
15421542
# stdmethods, stringintconv, structtag, testinggoroutine, tests, timeformat, unmarshal, unreachable, unsafeptr,
@@ -1636,7 +1636,7 @@ linters:
16361636
# Default: false
16371637
enable-all: true
16381638
# Disable analyzers by name.
1639-
# (in addition to default
1639+
# (In addition to default
16401640
# atomicalign, deepequalerrors, fieldalignment, findcall, nilness, reflectvaluecompare, shadow, sortslice,
16411641
# timeformat, unusedwrite
16421642
# ).
@@ -1703,16 +1703,16 @@ linters:
17031703
# Default: false
17041704
strict: true
17051705
unusedresult:
1706-
# Comma-separated list of functions whose results must be used
1707-
# (in addition to default:
1706+
# Comma-separated list of functions whose results must be used.
1707+
# (In addition to default:
17081708
# context.WithCancel, context.WithDeadline, context.WithTimeout, context.WithValue, errors.New, fmt.Errorf,
17091709
# fmt.Sprint, fmt.Sprintf, sort.Reverse
17101710
# ).
17111711
# Default: []
17121712
funcs:
17131713
- pkg.MyFunc
1714-
# Comma-separated list of names of methods of type func() string whose results must be used
1715-
# (in addition to default Error,String)
1714+
# Comma-separated list of names of methods of type func() string whose results must be used.
1715+
# (In addition to default Error,String).
17161716
# Default: []
17171717
stringmethods:
17181718
- MyMethod
@@ -1778,7 +1778,7 @@ linters:
17781778
alias: autoscalingv1alpha1
17791779
# You can specify the package path by regular expression,
17801780
# and alias by regular expression expansion syntax like below.
1781-
# see https://github.com/julz/importas#use-regular-expression for details
1781+
# See https://github.com/julz/importas#use-regular-expression for details.
17821782
- pkg: knative.dev/serving/pkg/apis/(\w+)/(v[\w\d]+)
17831783
alias: $1$2
17841784
# An explicit empty alias can be used to ensure no aliases are used for a package.
@@ -1917,14 +1917,14 @@ linters:
19171917
- assign
19181918
# List of numbers to exclude from analysis.
19191919
# The numbers should be written as string.
1920-
# Values always ignored: "1", "1.0", "0" and "0.0"
1920+
# Values always ignored: "1", "1.0", "0" and "0.0".
19211921
# Default: []
19221922
ignored-numbers:
19231923
- '0666'
19241924
- '0755'
19251925
- '42'
19261926
# List of file patterns to exclude from analysis.
1927-
# Values always ignored: `.+_test.go`
1927+
# Values always ignored: `.+_test.go`.
19281928
# Default: []
19291929
ignored-files:
19301930
- 'magic1_.+\.go$'
@@ -1979,7 +1979,7 @@ linters:
19791979
- unsafeptr
19801980

19811981
nlreturn:
1982-
# Size of the block (including return statement that is still "OK")
1982+
# Size of the block (including return statement that is still "OK"),
19831983
# so no return split required.
19841984
# Default: 1
19851985
block-size: 2
@@ -2681,7 +2681,7 @@ linters:
26812681
exclude: [""]
26822682

26832683
rowserrcheck:
2684-
# database/sql is always checked
2684+
# database/sql is always checked.
26852685
# Default: []
26862686
packages:
26872687
- github.com/jmoiron/sqlx
@@ -3267,7 +3267,7 @@ linters:
32673267
# Align and sort can be used together or separately.
32683268
#
32693269
# Whether enable align. If true, the struct tags will be aligned.
3270-
# e.g.:
3270+
# E.g.:
32713271
# type FooBar struct {
32723272
# Bar string `json:"bar" validate:"required"`
32733273
# FooFoo int8 `json:"foo_foo" validate:"required"`
@@ -3281,7 +3281,7 @@ linters:
32813281
align: false
32823282
# Whether enable tags sort.
32833283
# If true, the tags will be sorted by name in ascending order.
3284-
# e.g.: `xml:"bar" json:"bar" validate:"required"` -> `json:"bar" validate:"required" xml:"bar"`
3284+
# E.g.: `xml:"bar" json:"bar" validate:"required"` -> `json:"bar" validate:"required" xml:"bar"`.
32853285
# Default: true
32863286
sort: false
32873287
# Specify the order of tags, the other tags will be sorted by name.
@@ -3947,7 +3947,7 @@ formatters:
39473947
gci:
39483948
# Section configuration to compare against.
39493949
# Section names are case-insensitive and may contain parameters in ().
3950-
# The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`,
3950+
# The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`.
39513951
# If `custom-order` is `true`, it follows the order of `sections` option.
39523952
# Default: ["standard", "default"]
39533953
sections:

0 commit comments

Comments
 (0)