This linter checks that the number of arguments passed to each variadic format
string function matches the number of format specifiers in the format string.
Backport of core PR13705
Differential D2025
build: Add format string linter Fabien on Nov 7 2018, 21:31. Authored by
Details
This linter checks that the number of arguments passed to each variadic format Backport of core PR13705 ./test/lint/lint-format-strings.sh
Diff Detail
Event TimelineComment Actions โ bitcoin-abc git:(arcpatch-D2025) โ ./test/lint/lint-format-strings.sh ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found ./test/lint/lint-format-strings.sh: line 35: mapfile: command not found
Comment Actions Running it through arc lint is a good idea. I propose to do this in another diff to keep the backport clean
Comment Actions So I arch patched this and this is CLEARLY not working. $ time ./test/lint/lint-format-strings.sh [...] real 0m1.811s user 0m1.928s sys 0m0.616s $ time arc lint OKAY No lint warnings. real 0m0.544s user 0m0.448s sys 0m0.094s Comment Actions The linter actually runs on a single file if called via the bash script ./test/lint/lint-format-strings.sh file_to_check.
Comment Actions Split in two diffs. This one is the backport of PR13705. |