mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-14 00:53:15 -07:00
Use single quotes for the format string example in SC2059
This commit is contained in:
parent
60f75e5b8a
commit
4dfd7eb1cf
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ checkPrintfVar = CommandCheck (Exactly "printf") (f . arguments) where
|
|||
|
||||
unless ('%' `elem` concat (oversimplify format) || isLiteral format) $
|
||||
info (getId format) 2059
|
||||
"Don't use variables in the printf format string. Use printf \"..%s..\" \"$foo\"."
|
||||
"Don't use variables in the printf format string. Use printf '..%s..' \"$foo\"."
|
||||
where
|
||||
onlyTrailingTs format argCount =
|
||||
all (== 'T') $ drop argCount format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue