输出flake8冲突的checkstyle xml报告。
flake8-checkstyle的Python项目详细描述
flake8支票样式
输出flake8冲突的checkstyle xml报告。
快速启动
$ pip install flake8-checkstyle
要打印checkstyle报表,请使用--format=checkstyle命令行参数。
$ flake8 --format=checkstyle path/to/code
输出如下:
<?xml version='1.0' encoding='utf-8'?><checkstyle><filename="example.py"><errorcolumn="1"line="3"message="H306: imports not in alphabetical order (sys, os)"severity="info"source="hacking"/><errorcolumn="1"line="3"message="I100 Import statements are in the wrong order. import os should be before import sys"severity="info"source="flake8-import-order"/><errorcolumn="27"line="4"message="F821 undefined name 'index'"severity="info"source="pyflakes"/><errorcolumn="1"line="7"message="E302 expected 2 blank lines, found 1"severity="error"source="pycodestyle"/><errorcolumn="1"line="7"message="D101 Missing docstring in public class"severity="info"source="flake8-docstrings"/><errorcolumn="20"line="7"message="W291 trailing whitespace"severity="warning"source="pycodestyle"/></file></checkstyle>
checkStyle规则
FLAKE8检查方式可以与其他FLAKE8插件共存。 前缀代码决定了源代码和严重性。
prefix code | source | severity |
---|---|---|
E | pycodestyle | error |
W | pycodestyle | warning |
F | pyflakes | info |
C | mccabe | info |
H | hacking | info |
I | flake8-import-order | info |
D | flake8-docstrings | info |
许可证
- 麻省理工学院许可证
历史记录
0.1.2(2018-05-07)
- 支持flake8–输出文件参数
0.1.1(2018-01-15)
- 修改发布设置
0.1.0(2018-01-15)
- 修复了一些flake8冲突
- Circleci介绍
- 添加状态徽章
- 释放设置
0.0.1(2018-01-08)
- pypi上的第一个版本。