弗莱克8型造粉机

flake8-phabricator-formatter的Python项目详细描述


片状8成膜剂

生成flake8的简单格式化程序插件 JSON格式的结果适用于Phabricator的HarborMaster集成, 根据this documentation

因此,它主要用于jenkins和 Phabricator Jenkins Plugin

示例

flake8 --format=phabricator
{"context": "def some_stuff(toto):\n", "char": 1, "code": "E302", "line": 3, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "expected 2 blank lines, found 1"}{"context": "  print ('with flake8 errors')\n", "char": 3, "code": "E303", "line": 6, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "too many blank lines (2)"}{"context": "  print ('with flake8 errors')\n", "char": 3, "code": "E111", "line": 6, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "indentation is not a multiple of four"}{"context": "  print ('with flake8 errors')\n", "char": 8, "code": "E211", "line": 6, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "whitespace before '('"}{"context": "  toto = 42\n", "char": 3, "code": "E111", "line": 7, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "indentation is not a multiple of four"}{"context": "  toto = 42\n", "char": 3, "code": "F841", "line": 7, "name": "flake8", "severity": "advice", "path": "sandbox/__init__.py", "description": "local variable 'toto' is assigned to but never used"}{"context": "  \n", "char": 1, "code": "W293", "line": 8, "name": "flake8", "severity": "warning", "path": "sandbox/__init__.py", "description": "blank line contains whitespace"}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何加载JNI。具有依赖项的动态库文件,但未获得未满足的链接错误?   java ResultSet元数据未返回第一行   无法从java xml解析器中的当前节点获取节点列表   java如何从for循环值创建单个数组   java如何在没有arrayList的情况下查找对象   java ItemizedOverlayWithFocus在聚焦osmdroid时显示另一个覆盖   java使用迭代器进行“向下”迭代的优雅方式   java如何使用OnListItemClick为listview和AlertDialog使用单独的arraylist?   arraylist读取txt文件Java中存储的数组   javascript IE 11与RicoLive Grid 2.2框架不兼容   java我能得到水豚的maven依赖性吗?   简单Escp Java:PrintPreviewPane在JDK7中不起作用   java取出给定字符串的一部分,并将所取部分作为变量返回?   java如何替换“instanceof”函数中的变量   来自url的Java utf8编码   java方法获取类Gregorianalendar?   安卓如何在java 7中使用AndroidStudio和DDMS监视器   java测试在JUnit4下运行,但不是在JUnit5下运行-编译干净,但执行0测试   java无法使用Azure服务总线发送消息