CodemodFacebook 代码分析工具
Codemod 是一个工具/库,它可以帮你处理那些只有部分自动化功能,部分场合还需人工干预的大规模代码库。
示例代码:
-m Have regex work over multiple lines (e.g. have dot match newlines). By default, codemod applies the regex one line at a time. -d The path whose ancestor files are to be explored. Defaults to current dir. --start A path:line_number-formatted position somewhere in the hierarchy from which to being exploring, or a percentage (e.g. "--start 25%") of the way through to start. Useful if you're divvying up the substitution task across multiple people. --end A path:line_number-formatted position somewhere in the hierarchy just *before* which we should stop exploring, or a percentage of the way through, just before which to end. --extensions A comma-delimited list of file extensions to process. --include-extensionless If set, this will check files without an extension, along with any matching file extensions passed in --extensions --accept-all Automatically accept all changes (use with caution) --editor Specify an editor, e.g. "vim" or "emacs". If omitted, defaults to $EDITOR environment variable. --count Don't run normally. Instead, just print out number of times places in the codebase where the 'query' matches. --test Don't run normally. Instead, just run the unit tests embedded in the codemod library.
评论
PylintPython代码分析工具
Pylint是一个Python代码分析工具,它分析Python代码中的错误,查找不符合代码风格标准(Pylint默认使用的代码风格是PEP8)和有潜在问题的代码。Pylint是一个Python工具,除
PylintPython代码分析工具
0
CodeNarcGroovy代码分析工具
CodeNarc是一个对Groovy代码进行静态分析的工具和框架。CodeNarc通过扫描Groovy源代码来寻找那些违反预定或自定义的相关规则,包括检测编码标准、寻找未使用的代码、可预见的bug或者
CodeNarcGroovy代码分析工具
0
PyCheckerPython代码分析工具
PyChecker是一个python脚本分析工具,它可以发现python脚本中的bugs,它支持python2.0–2.7。PyChecker可以发现的问题包括:Noglobalfound(e.g.,
PyCheckerPython代码分析工具
0