Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A lot of .inc files in /core/includes (D8) and /include (D7) have trailing whitespace at the end of the file. These patches fix this.
Comment | File | Size | Author |
---|---|---|---|
#11 | trailing-whitespace-7.patch | 2.46 KB | jhodgdon |
trailing-whitespace-D7.patch | 2.46 KB | TR | |
trailing-whitespace.patch | 3.02 KB | TR | |
Comments
Comment #1
TR CreditAttribution: TR commentedComment #2
aspilicious CreditAttribution: aspilicious commentedOk this is a no brainer
Comment #3
catchNot quite:
http://drupal.org/coding-standards
Comment #4
TR CreditAttribution: TR commented"single newline" means *one* newline. This patch fixes those files which have *two* newlines.
Comment #5
xjmI think this patch is correct. (If it weren't I believe it would be full of added
\No newline at end of file
barf.)Comment #6
droplet CreditAttribution: droplet commentedCool. I think we need a plan to postponed all these issues (spaces / tabs / comment head format) and fix them at very the end of D8 development.
(but this one also exist in D7)
Comment #7
xjmActually, now is the best time to fix this sort of stuff, when there's no scary D8 deadlines looming. See also #1310084: [meta] API documentation cleanup sprint and the core gates. Ensuring that code conforms to our style and documentation standards should not be postponed to the last minute; it should be a consistent part of the development process.
Comment #8
droplet CreditAttribution: droplet commentedYeah, I agreed to clean up documentation / big standards issue right now but for above one is a small case.
anyway, another coding standards issue, affected around 124 files: #1109202: [meta] Fix coding standards violations across Drupal core
Comment #9
TR CreditAttribution: TR commentedThe trailing whitespace fixed by these patches is not addressed in #1109202: [meta] Fix coding standards violations across Drupal core, and these patches do not conflict with #1109202: [meta] Fix coding standards violations across Drupal core. This issue deals with a trivial problem I noticed while rolling a patch for a different issue, and it's something that shouldn't need discussion.
IMO it's far easier to fix the little things as we go along - patches like this have little to no impact on other works in progress.
Comment #10
catchCommitted/pushed to 8.x. There's no tag here, but there's a 7.x patch so adding the tag and setting CNR against that branch.
Comment #11
jhodgdonRe-uploading d7 patch with a new name so the bot can test it, and as it looks fine, setting to RTBC (pending test bot passage).
Comment #12
webchickCommitted and pushed to 7.x, though I'd really love to stop committing patches like this and instead get automated checks built into testbot via http://drupal.org/project/coder and/or http://drupal.org/project/drupalcs. As of http://jthorson.doesdrupal.com/node/34 testbot can now do "Advisory" code reviews for just this purpose.
Comment #14
acb CreditAttribution: acb commentedTR-- Been trying to get in touch. Could you please check your drupal messages/email/spam folder? Thank you! -ACB