Trailing whitespace fixer does not work?
See original GitHub issueTesting it on a simple file with a trailing space:
#' @export
even when the file is staged,
pre-commit run --all-files -v
returns
Trim Trailing Whitespace.......................................................................................Passed
, but has no visible effect on the file.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Why isn't my git pre-commit hook trimming white space from ...
So the problem is that it is not trimming the white space at the end of lines. When I open my file after...
Read more >Trailing Whitespace Fixer - Visual Studio Marketplace
Extension for Visual Studio Code - Automatically removes trailing whitespace when you hit Enter. Also highlights trailing whitespace.
Read more >trailing-whitespace trims trailing whitespace — Tuto git
Markdown linebreak trailing spaces preserved for .md and`.markdown`;. Use: args: ['–markdown-linebreak-ext=txt,text'] ...
Read more >Improving your life with pre-commit
As you can see, what's being caught here are largely whitespace issues: I've left trailing whitespace on some lines, and in some cases...
Read more >Life is Too Short to Review Spaces - GitGuardian Blog
From the git book, git hooks are a way to fire off custom scripts when ... id: check-yaml - id: end-of-file-fixer - id:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What is the extension of the file? Currently (by default) it matches this list here:
https://github.com/pre-commit/pre-commit-hooks/blob/144c3857cdbba0b758f80aeee9f2adf42ea303ee/hooks.yaml#L143
via #126