mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
refactor(cli): Clean up binary files detection output format
Remove redundant explanatory message from binary file listing to simplify output. The main header already explains the detection method, making individual file annotations unnecessary. Changes: - Remove "Detected as binary despite text extension" message from each file - Improve type safety by using FileSkipReason type instead of string - Update corresponding test expectations - Clean up unused import in fileCollectWorker The simplified output is cleaner while maintaining clarity about why files were excluded.
This commit is contained in:
@@ -30,7 +30,6 @@ describe('reportSkippedFiles', () => {
|
||||
expect(logger.log).toHaveBeenCalledWith(expect.stringContaining('📄 Binary Files Detected:'));
|
||||
expect(logger.log).toHaveBeenCalledWith(expect.stringContaining('1 file detected as binary'));
|
||||
expect(logger.log).toHaveBeenCalledWith(expect.stringContaining('dir/malformed.txt'));
|
||||
expect(logger.log).toHaveBeenCalledWith(expect.stringContaining('Detected as binary despite text extension'));
|
||||
});
|
||||
|
||||
test('should report multiple binary-content files', () => {
|
||||
|
||||
Reference in New Issue
Block a user