We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ cat bug.rb max_width = 7 id = 58 format('%*d', max_width, id)
$ rubocop bug.rb Inspecting 1 file W Offenses: bug.rb:3:1: W: Lint/FormatParameterMismatch: Number arguments (2) to format mismatches expected fields (1). format('%*d', max_width, id) ^^^^^^ 1 file inspected, 1 offense detected
This is a hard cop to get right...
The text was updated successfully, but these errors were encountered:
//cc @edmz
Sorry, something went wrong.
I have been working on these, but they are a bit harder than what I originally thought.
db7683e
what about the opposite situation?
v = [1, 2] format('%d%d', *v)
W: Number arguments (1) to format mismatches expected fields (2).
this should probably be ignored too
No branches or pull requests
$ cat bug.rb max_width = 7 id = 58 format('%*d', max_width, id)
This is a hard cop to get right...
The text was updated successfully, but these errors were encountered: