Commits

Kevin Qiu committed b35ecfa Draft

Added skeleton of JSONReporter.

  • Participants
  • Parent commits a8e0d01
  • Branches json-reporter

Comments (0)

Files changed (1)

File reporters/json.py

+import sys
+
+from pylint.reporters import BaseReporter
+from pylint.interfaces import IReporter
+
+class JsonReporter(BaseReporter):
+    """Renders the report output as a json stream
+    """
+
+    __implements__ = IReporter
+    extension = 'json'
+
+    def __init__(self, output=sys.stdout):
+        TextReporter.__init__(self, output)
+
+    def add_message(self, msg_id, location, msg):
+        path, module, obj, line, col_offset = location
+
+    def display_results(self, layout):
+        pass