facebookincubator / fastmod

A fast partial replacement for the codemod tool
Apache License 2.0
1.68k stars 42 forks source link

Option to include hidden files #25

Closed sluongng closed 3 years ago

sluongng commented 3 years ago

Right now fastmod ignore hidden files unless we specifically list them in the file list.

For example running fastmod 'target' 'targets' on this very repo will skip out on https://github.com/facebookincubator/fastmod/blob/master/.gitignore file.

Please provide an option to match hidden file.

swolchok commented 3 years ago

Thanks for reporting this! It looks like we are missing equivalents to ripgrep's --no-ignore and --hidden options per https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#automatic-filtering .

swolchok commented 3 years ago

I'm not going to add --no-ignore for now because it's part of a large-ish set of ripgrep options and I'd rather not open that particular can of worms, but --hidden should hopefully be coming soon.