facebookarchive / codemod

Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore binary files automatically

raviqqe opened this issue · comments

Is it possible to add an option to ignore binary files automatically rather than exiting?

For example,

codemod --ignore-binary foo bar

Currently, the only way to avoid stopping replacement at binary files is to specify all file extensions known to be text files although it's a kind of tedious. For example, I often do this:

codemod --extension ts,md,js,tsx,jsx,txt,json foo bar

This feature might be related to #105.

I THINK this commit fixes this issue for python3, but I'm not sure if there has been a new release after that: d9f2c24