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:
Ryan Downing 2023-11-30 18:24:27 -05:00 committed by GitHub
parent 42bc79146f
commit 573f5606e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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).