Page MenuHomePhabricator

[lint] improve handling of escaped % in lint-format-strings
ClosedPublic

Authored by PiRK on Mar 14 2023, 07:59.

Details

Summary

The linter considered 2 or more consecutive "%" as an escaped "%" character.
This fixes the problem: now the linter escapes only even numbers of "%" characters.

Test Plan

Run unit tests (via doctest):

test/lint/lint-format-strings.py

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable