Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SC2183: Fix pluralization for zero arguments in printf format string#3342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Simon-Brandt wants to merge1 commit intokoalaman:master
base:master
Choose a base branch
Loading
fromSimon-Brandt:master
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix pluralization for zero arguments in printf format string
  • Loading branch information
@Simon-Brandt
Simon-Brandt authoredOct 27, 2025
commit913d1aa51663393c7ec8f2cbe2ac0d33a8d47cab
2 changes: 1 addition & 1 deletionsrc/ShellCheck/Checks/Commands.hs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -691,7 +691,7 @@ checkPrintfVar = CommandCheck (Exactly "printf") (f . arguments) where
let formats = getPrintfFormats string
let formatCount = length formats
let argCount = length more
let pluraliseIfMany word n = if n> 1 then word ++ "s" else word
let pluraliseIfMany word n = if n== 1 then wordelse word++ "s"

return $ if
| argCount == 0 && formatCount == 0 ->
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp