-
Notifications
You must be signed in to change notification settings - Fork 184
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sprintf linter #544
Comments
Just a memo if this will be implemented, > sprintf("%1$s %s", "a", 42L)
[1] "a a" |
Thanks for pointing it out! I think we could transform calls like |
Just confirming in fact
|
I'm thinking of a
sprintf
linter that extracts allsprintf(...)
calls and checks if the number of supplied arguments is consistent with the number of format placeholders in the format string when the format string is a string literal (rather than a symbol or call).If the supplied argument is an atomic value, it could also check if its type is consistent with the format at the corresponding position.
The text was updated successfully, but these errors were encountered: