decalage2 / oletools

oletools - python tools to analyze MS OLE2 files (Structured Storage, Compound File Binary Format) and MS Office documents, for malware analysis, forensics and debugging.
http://www.decalage.info/python/oletools
Other
2.81k stars 560 forks source link

Exclude RTF files from language statistics #815

Closed DecimalTurn closed 1 year ago

DecimalTurn commented 1 year ago

This repo should be recognized as a python repo, but due to the presence of the massive file below, it is recognized as a Rich Text Format repo.

tests/test-data/msodde/RTF-Spec-1.7.rtf

To avoid this, we can simply add an exception inside a .gitattributes file to exclude Rich Text Format from the language stats. The only other RTF file is also test data, so that shouldn't be counted as well.

decalage2 commented 1 year ago

Now it looks better: image