简单分享一个GitHub上开源的代码自动提取工具Ramile,使用说明其实仓库里已经写的很清楚了,虽然是英文,但翻译过来还是能够看得懂的。
顺便分享一个代码统计工具CLOC的使用,可用于代码行数的统计。
这里对Ramile进行简略的使用说明:
1.克隆仓库,或下载源码
配置
如果需要自定义配置,需要将 放在项目根文件夹下,Ramile 会自动从项目根目录加载配置文件。该文件应为 json 格式。相关配置项如下:
Key | Description | Default | Example |
---|---|---|---|
ignore | Sets the directories/files to be ignored by Ramile. “ignore” paths should be sub directories/files under source_root. Any directories/files starting with any one of the “ignore” items will be ignored. Wildcars are not supported. | [] | [‘Pods’, ‘libs’] |
source_root | Overwrites the root directory of source codes to avoid Ramile process from the project root. | ‘’ | ‘app’ |
filters | Sets the exclusive filters (which means, all other extensions will NOT be processed) for file extensions. By default all files will be processed. | [] | [’.js’, ‘.vue’] |
lines_to_extract | Sets the total lines to extract | 3000 | 3000 |
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!