Ref T13577. This lint rule correctly detects the error in pht('x %s y') but the narrow test for n_STRING_SCALAR prevents it from detecting the error in pht('x %s y'.'z').
Make the test broader.
Differential D21453
Fix a false negative in lint for "xsprintf()"-family functions epriestley on Sep 5 2020, 12:07 AM. Authored by Tags None Referenced Files
Subscribers None
Details Ref T13577. This lint rule correctly detects the error in pht('x %s y') but the narrow test for n_STRING_SCALAR prevents it from detecting the error in pht('x %s y'.'z'). Make the test broader.
Diff Detail
|