Codemod Facebook 代码分析工具开源项目

我要开发同款
匿名用户2015年04月13日
107阅读

技术信息

开源地址
https://github.com/facebook/codemod
授权协议
Apache

作品详情

Codemod是一个工具/库,它可以帮你处理那些只有部分自动化功能,部分场合还需人工干预的大规模代码库。示例代码:

-m  Have regex work over multiple lies (e.g. have dot match ewlies).  By  default, codemod applies the regex oe lie at a time.-d  The path whose acestor files are to be explored.  Defaults to curret dir.--start  A path:lie_umber-formatted positio somewhere i the hierarchy from which  to beig explorig, or a percetage (e.g. "--start 25%") of the way through  to start.  Useful if you're divvyig up the substitutio task across  multiple people.--ed  A path:lie_umber-formatted positio somewhere i the hierarchy just  *before* which we should stop explorig, or a percetage of the way  through, just before which to ed.--extesios  A comma-delimited list of file extesios to process.--iclude-extesioless  If set, this will check files without a extesio, alog with ay  matchig file extesios passed i --extesios--accept-all  Automatically accept all chages (use with cautio)--editor  Specify a editor, e.g. "vim" or "emacs".  If omitted, defaults to $EDITOR  eviromet variable.--cout  Do't ru ormally.  Istead, just prit out umber of times places i the  codebase where the 'query' matches.--test  Do't ru ormally.  Istead, just ru the uit tests embedded i the  codemod library.

功能介绍

Codemod 是一个工具/库,它可以帮你处理那些只有部分自动化功能,部分场合还需人工干预的大规模代码库。 示例代码:
-m
  Have regex work over multiple...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论