-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file-nullbyte messes up terminal (when run against binary files?) #14
Comments
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 |
Having this as default is fine (with me), but at least the example in the Furthermore the check itself should still not cause errors and mis-configure the terminal. So I would still consider this to be a bug :-). |
…iles This updates the recommended / suggested configuration file presented in the `README.md` file, so that `file-nullbyte` is only searching text files by default (`FILE_NULLBYTE_TEXT=0). Searching binary files for null bytes (`NUL`) makes not too much sense, since it will regularly find such files, and it is perfectly fine for them to contain these bytes. This addresses one aspect of an issue with searching binary files with this particular file check (documented in cytopia#14).
I've prepared a change in #15 to change the |
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:
The text was updated successfully, but these errors were encountered: