mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
add note for end-of-file-fixer to run trailing-whitespace first, so you don't have to run and stage twice
This commit is contained in:
parent
42bc79146f
commit
573f5606e2
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ Checks for the existence of private keys.
|
|||
This hook replaces double quoted strings with single quoted strings.
|
||||
|
||||
#### `end-of-file-fixer`
|
||||
Makes sure files end in a newline and only a newline.
|
||||
Makes sure files end in a newline and only a newline. Should be run _after_ `trailing-whitespace` in order to handle files that end with spaces.
|
||||
|
||||
#### `file-contents-sorter`
|
||||
Sort the lines in specified files (defaults to alphabetical).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue