From 573f5606e250bf05d268921055f587d0a99f2f50 Mon Sep 17 00:00:00 2001 From: Ryan Downing <26515643+r-downing@users.noreply.github.com> Date: Thu, 30 Nov 2023 18:24:27 -0500 Subject: [PATCH] add note for `end-of-file-fixer` to run `trailing-whitespace` first, so you don't have to run and stage twice --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ae7ec5..6e81d0a 100644 --- a/README.md +++ b/README.md @@ -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).