Skip to content

Commit 8ca1d1a

Browse files
committed
formatter: make description of require-f-funcs flag consistent with golangci-lint
1 parent 8fd3485 commit 8ca1d1a

File tree

4 files changed

+27
-42
lines changed

4 files changed

+27
-42
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ Also, verbs in the format string of f-assertions are highlighted by an IDE, e.g.
479479
<br>
480480

481481
> [!CAUTION]
482-
> `--formatter.require-f-funcs` requires f-assertions **even if there are no variable-length variables**, i.e. it
482+
> `--formatter.require-f-funcs` requires f-assertions, **even if there are no variable-length variables**, i.e. it
483483
> requires `require.NoErrorf` for both these cases:
484484
> ```
485485
> require.NoErrorf(t, err, "unexpected error")

analyzer/testdata/src/checkers-default/blank-import/blank_import_test.go

Lines changed: 23 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analyzer/testdata/src/checkers-default/suite-dont-use-pkg/suite_dont_use_pkg_test.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func BindToFlags(cfg *Config, fs *flag.FlagSet) {
133133
"to enable go vet's printf checks")
134134
fs.BoolVar(&cfg.Formatter.RequireFFuncs,
135135
"formatter.require-f-funcs", false,
136-
"to require f-assertions if format string is used (even if there are no variable-length variables)")
136+
"to require f-assertions (e.g. assert.Equalf) if format string is used, even if there are no variable-length variables.")
137137

138138
fs.BoolVar(&cfg.GoRequire.IgnoreHTTPHandlers,
139139
"go-require.ignore-http-handlers", false,

0 commit comments

Comments
 (0)