Skip to content

Commit 0529659

Browse files
blizzy78SeigeC
authored andcommitted
bump varnamelen from v0.4.0 to v0.5.0 (golangci#2369)
1 parent 3d9f54b commit 0529659

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.golangci.example.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -722,13 +722,15 @@ linters-settings:
722722
ignore-names:
723723
- err
724724
# Optional list of variable declarations that should be ignored completely. (defaults to empty list)
725-
# Entries must be in the form of "<variable name> <type>" or "<variable name> *<type>".
725+
# Entries must be in the form of "<variable name> <type>" or "<variable name> *<type>" for
726+
# variables, or "const <name>" for constants.
726727
ignore-decls:
727728
- c echo.Context
728729
- t testing.T
729730
- f *foo.Bar
730731
- e error
731732
- i int
733+
- const C
732734

733735
whitespace:
734736
multi-if: false # Enforces newlines (or comments) after every multi-line if statement

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/ashanbrown/forbidigo v1.2.0
1414
github.com/ashanbrown/makezero v0.0.0-20210520155254-b6261585ddde
1515
github.com/bkielbasa/cyclop v1.2.0
16-
github.com/blizzy78/varnamelen v0.4.0
16+
github.com/blizzy78/varnamelen v0.5.0
1717
github.com/bombsimon/wsl/v3 v3.3.0
1818
github.com/breml/bidichk v0.2.1
1919
github.com/butuzov/ireturn v0.1.1

go.sum

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/gocritic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func configureCheckerInfo(
121121
// Maybe in the future, this kind of conversion will be done in go-critic itself.
122122
func normalizeCheckerParamsValue(lintCtx *linter.Context, p interface{}) interface{} {
123123
rv := reflect.ValueOf(p)
124-
//nolint:exhaustive // only 3 types (int, bool, and string) are supported by CheckerParam.Value
124+
// nolint:exhaustive // only 3 types (int, bool, and string) are supported by CheckerParam.Value
125125
switch rv.Type().Kind() {
126126
case reflect.Int64, reflect.Int32, reflect.Int16, reflect.Int8, reflect.Int:
127127
return int(rv.Int())

pkg/golinters/godot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func NewGodot() *goanalysis.Linter {
3636
}
3737

3838
// Convert deprecated setting
39-
if cfg.CheckAll { // nolint: staticcheck
39+
if cfg.CheckAll { // nolint:staticcheck
4040
settings.Scope = godot.TopLevelScope
4141
}
4242

0 commit comments

Comments
 (0)