The script test/lint/lint-whitespace.sh should prevent new cases.
This happens in some pulls where the code editor and the author ‘git add’s them, so this would fix it all.
The script test/lint/lint-whitespace.sh should prevent new cases.
This happens in some pulls where the code editor and the author ‘git add’s them, so this would fix it all.
Ironically rejected by a linter :-)
Concept ACK: means I can turn “remove trailing whitespace” on again in my editor, without it changing stuff all over the file.
means I can turn “remove trailing whitespace” on again in my editor, without it changing stuff all over the file
Right, or skip hunks. Or this #13248 (review).
[[:space:]][[:space:]]*
and [[:space:]]+
?
+
extended regular expressions must be used. Updated to use them.
--regexp-extended
, not -E
and for git it is --extended-regexp
:p
''
after the -i
option, no?
-BEGIN VERIFY SCRIPT-
sed --in-place'' --regexp-extended 's/[[:space:]]+$//g' $(git grep -I --files-with-matches --extended-regexp '[[:space:]]+$' -- src test ':!*.svg' ':!src/crypto/sha256_sse4*' ':!src/leveldb' ':!src/qt/locale' ':!src/secp256k1' ':!src/univalue')
-END VERIFY SCRIPT-
utACK https://github.com/bitcoin/bitcoin/pull/13753/commits/12dd1013454a3b4913e8e6bbac251887e7e82ff0
Have not checked the scripted diff or if this is has removed all the trailing whitespace, but if according to @DrahtBot this doesn’t disrupt much else, LJGTM.