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

Cannot codemod extensionless files

grp opened this issue · comments

There's no way to specify extensionless files to codemod. This gets in the way of files used by some build systems, like BUILD or BUCK files.

Hmm, that seems like an oversight. Hopefully it'll be easy to fix.

Out of curiosity, what happens when you run codemod.py --extensions BUCK? #lazyweb

Doesn't find anything, sadly.

Fix isn't good enough - needs wild-card as I have 20+ extensionless files to fix. Tested on a local install with --extensions *

@glenpike As far as I can tell, codemod doesn't currently support glob patterns like *. Feel free to open a separate issue for that feature, though!