Skip to content

Commit 50f495e

Browse files
committed
Remove trialing whitespace check and auto-remove.
This is creating far more bother than the benefit it gains. NO_JIRA
1 parent 989fd80 commit 50f495e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

main.py

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
retval += githooks.check_do_not_merge(files['M'])
3535
retval += githooks.check_do_not_merge(files['A'], new_files=True)
3636

37-
retval += githooks.remove_trailing_white_space(files['M'], dry_run=True)
38-
retval += githooks.remove_trailing_white_space(files['A'], new_files=True,
39-
dry_run=True)
4037
retval += githooks.check_filenames(files['M'] + files['A'])
4138
retval += githooks.check_eol(files['M'] + files['A'])
4239
retval += githooks.check_content(files['M'] + files['A'])

main/githooks.py

-4
Original file line numberDiff line numberDiff line change
@@ -847,10 +847,6 @@ def commit_hook(merge=False):
847847
retval = 0
848848
files = get_commit_files()
849849

850-
print(' Auto remove trailing white space ...')
851-
remove_trailing_white_space(files['M'])
852-
remove_trailing_white_space(files['A'], new_files=True)
853-
854850
print(' Check username ...')
855851
retval += check_username()
856852

0 commit comments

Comments
 (0)