Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 508 Bytes

Lint-FormatParameterMismatch.md

File metadata and controls

24 lines (15 loc) · 508 Bytes

Pattern: Mismatched format parameters

Issue: -

Description

This lint sees if there is a mismatch between the number of expected fields for format/sprintf/#% and what is actually passed as arguments.

Examples

# bad

format('A value: %s and another: %i', a_value)
# good

format('A value: %s and another: %i', a_value, another)

Further Reading