Commit 9d54532
Adding a custom entry for trailling-whitespace
We're adding a wrapper around trailing-whitespace-fixer, which is the
default entry https://github.com/pre-commit/pre-commit-hooks/blob/main/.pre-commit-hooks.yaml#L205
So now, instead of directly call it, we are checking if is there any space
in the files, if so, then we add it to the list and we call trailing-whitespace-fixer.
if not file, then we don't execute anything and we retrieve success.
Apart of impacting positive as we're not calling by default the trailing-whitespace-fixer python script,
now we can see the files that needs to remove the whitespace.
Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>1 parent b983d9a commit 9d54532
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments