Skip to main content

flake8 formatter for Phabricator's Harbormaster

Project description

flake8-phabricator-formatter

A simple formatter plugin for flake8 that generates json formatted results suitable for Phabricator's Harbormaster integraton, according to this documentation

As such, it's mainly dedicated to being used in Jenkins with the Phabricator Jenkins Plugin.

Example

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"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flake8-phabricator-formatter, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size flake8_phabricator_formatter-0.1.1-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size flake8-phabricator-formatter-0.1.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page