Skip to content

Commit 7f25fee

Browse files
authored
bump varnamelen from v0.4.0 to v0.5.0 (#2369)
1 parent b67af9a commit 7f25fee

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
@@ -717,13 +717,15 @@ linters-settings:
717717
ignore-names:
718718
- err
719719
# Optional list of variable declarations that should be ignored completely. (defaults to empty list)
720-
# Entries must be in the form of "<variable name> <type>" or "<variable name> *<type>".
720+
# Entries must be in the form of "<variable name> <type>" or "<variable name> *<type>" for
721+
# variables, or "const <name>" for constants.
721722
ignore-decls:
722723
- c echo.Context
723724
- t testing.T
724725
- f *foo.Bar
725726
- e error
726727
- i int
728+
- const C
727729

728730
whitespace:
729731
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)