Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Lint/FormatParameterMismatch triggers off format strings in arguments (ie strftime arguments) #8115
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.
Steps to reproduce the problem
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