diff --git a/credsweeper/file_handler/file_path_extractor.py b/credsweeper/file_handler/file_path_extractor.py index ae3939643..ba8dc6f5b 100644 --- a/credsweeper/file_handler/file_path_extractor.py +++ b/credsweeper/file_handler/file_path_extractor.py @@ -143,7 +143,7 @@ def check_exclude_file(config: Config, path: str) -> bool: return True if not config.depth and file_extension in config.exclude_containers: return True - # --depth or --doc enables scan for all files + # --depth or --doc enables scan for all documents extensions if not (config.depth or config.doc) and file_extension in config.exclude_documents: return True return False diff --git a/tests/samples/sample.docx.gz b/tests/samples/sample.docx.gz new file mode 100644 index 000000000..7c4c56012 Binary files /dev/null and b/tests/samples/sample.docx.gz differ diff --git a/tests/samples/small.pdf b/tests/samples/small.pdf new file mode 100644 index 000000000..4cb57b18b Binary files /dev/null and b/tests/samples/small.pdf differ