Skip to content

Commit

Permalink
docs: improve testifylint description of require-f-funcs flag (#5131)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <[email protected]>
  • Loading branch information
Antonboom and ldez authored Nov 16, 2024
1 parent 5d5f373 commit 818fa8b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3383,7 +3383,12 @@ linters-settings:
# To enable go vet's printf checks.
# Default: true
check-format-string: false
# To require f-assertions if format string is used.
# To require f-assertions (e.g. `assert.Equalf`) if format string is used, even if there are no variable-length
# variables, i.e. it requires `require.NoErrorf` for both these cases:
# - require.NoErrorf(t, err, "unexpected error")
# - require.NoErrorf(t, err, "unexpected error for sid: %v", sid)
# To understand this behavior, please read the
# https://github.com/Antonboom/testifylint?tab=readme-ov-file#historical-reference-of-formatter.
# Default: false
require-f-funcs: true
go-require:
Expand Down
7 changes: 6 additions & 1 deletion .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3383,7 +3383,12 @@ linters-settings:
# To enable go vet's printf checks.
# Default: true
check-format-string: false
# To require f-assertions if format string is used.
# To require f-assertions (e.g. `assert.Equalf`) if format string is used, even if there are no variable-length
# variables, i.e. it requires `require.NoErrorf` for both these cases:
# - require.NoErrorf(t, err, "unexpected error")
# - require.NoErrorf(t, err, "unexpected error for sid: %v", sid)
# To understand this behavior, please read the
# https://github.com/Antonboom/testifylint?tab=readme-ov-file#historical-reference-of-formatter.
# Default: false
require-f-funcs: true
go-require:
Expand Down
2 changes: 1 addition & 1 deletion jsonschema/golangci.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3059,7 +3059,7 @@
"default": true
},
"require-f-funcs": {
"description": "To require f-assertions if format string is used.",
"description": "To require f-assertions (e.g. assert.Equalf) if format string is used, even if there are no variable-length variables.",
"type": "boolean",
"default": false
}
Expand Down
2 changes: 1 addition & 1 deletion jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3059,7 +3059,7 @@
"default": true
},
"require-f-funcs": {
"description": "To require f-assertions if format string is used.",
"description": "To require f-assertions (e.g. assert.Equalf) if format string is used, even if there are no variable-length variables.",
"type": "boolean",
"default": false
}
Expand Down

0 comments on commit 818fa8b

Please sign in to comment.