Open kbabioch opened 4 years ago
Scanning all files in the path is the default behaviour to be consistent with all included checks. To circumvent this you can explicitly use the argument --text
to ignore all binary files.
Having this as default is fine (with me), but at least the example in the README.md
should have FILE_NULLBYTE_TEXT
set to 1
.
Furthermore the check itself should still not cause errors and mis-configure the terminal. So I would still consider this to be a bug :-).
I've prepared a change in #15 to change the README.md
accordingly. This addresses the documentation aspect, but does NOT fix the bug itself :-).
The
file-nullbyte
check seems to mess up terminals. I've checked it on multiple *nix machines (Linux, macOS) and the terminals are only showing "weird" characters and/or behave strangely, after the following command is run:$(pwd)
is the checked out repository, and contains some binary files inside the.git/
directoryThe result looks something like this:
The terminal needs to be
reset
afterwards.The example snippet for this check looks like this:
This results in binary files being scanned.
Now I'm wondering: