在工作区中查看彩色的增量diff,并用来自您最喜欢的linter的消息进行注释。
cdifflint的Python项目详细描述
cdifflint
基于术语的工具,用于查看colored,incrementaldiff in agit/mercurial/svn 工作区或来自stdin,与受影响的linting错误并排。要求 Python(>;=2.7.0)和less。
安装
使用setup.py安装
如果没有pip,也可以从源代码运行setup.py。
git clone https://github.com/rgeoghegan/cdifflint.git
cd cdifflint
./setup.py install
使用量
键入cdifflint -h以显示用法:
$ cdifflint -h usage: cdifflint [-h] [-s] [-w N] [-l] [-c M] [-t {pep8,jslint,pyflakes}] View colored, incremental diff in a workspace, annotated with messages from your favorite linter. optional arguments: -h, --help show this help message and exit -s, --side-by-side enable side-by-side mode -w N, --width N set text width for side-by-side mode, 0 for auto detection, default is 80 -l, --log show log with changes from revision control -c M, --color M colorize mode 'auto' (default), 'always', or 'never' -t {pep8,jslint,pyflakes}, --lint {pep8,jslint,pyflakes} run the given linters and show the lint messages in the diff. Currently supports pep8, jslint, pyflakes. (Can be specified multiple times) Note: Option parser will stop on first unknown option and pass them down to underneath revision control
另见
我从highly中获得的原始代码是cdiff工具,它做的最多 关于重担。
更改日志
版本1.0.0(2016-12-14)
- Working off cdiff version 0.9.8, can now show diffs, and also list any linter output within the diff.
版本1.0.1(2016-12-24)
- Fixing distributed package so it actually installs