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
Lint/FormatParameterMismatch appears to trigger if the arguments include a string that appears to have format values in it.
The cop should only complain if there are conflicting parameter types in the format string.
If the format string has one type of parameter types and an argument to the format string appears to have another, the cop will trigger.
Run rubocop against a file with the following line:
format('%<time>s', time: time.strftime('%Y-%m-%d %H:%M:%S'))
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
rubocop -V
bundle exec rubocop -V
0.85.1 (using Parser 2.7.1.3, rubocop-ast 0.0.3, running on ruby 2.6.6 x86_64-linu x-musl)
The text was updated successfully, but these errors were encountered:
@andrykonchin can you look into this, please? I'm assuming it's related to the recent changes you did there.
Sorry, something went wrong.
Fix rubocop#8115. Lint/FormatParameterMismatch. Fix bug with formatti…
9fe7006
…ng in argument
@bbatsov Done
Successfully merging a pull request may close this issue.
Lint/FormatParameterMismatch appears to trigger if the arguments include a string that appears to have format values in it.
Expected behavior
The cop should only complain if there are conflicting parameter types in the format string.
Actual behavior
If the format string has one type of parameter types and an argument to the format string appears to have another, the cop will trigger.
Steps to reproduce the problem
Run rubocop against a file with the following line:
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:The text was updated successfully, but these errors were encountered: