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).
ACK b3ce5956291cd25ddb654e1dfb543658f87cdeb1, any difference between [[:space:]][[:space:]]* and [[:space:]]+?
@MarcoFalke in order to use + extended regular expressions must be used. Updated to use them.
Note that the flag for gnu sed is --regexp-extended, not -E and for git it is --extended-regexp :p
You'd have to remove the trailing '' 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-
@MarcoFalke done :feelsgood:
utACK 12dd101
utACK 12dd1013454a3b4913e8e6bbac251887e7e82ff0
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
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.