From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Crotti Subject: pylint to org reporting Date: Wed, 07 Dec 2011 16:23:30 +0000 Message-ID: <4EDF9302.4000908@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYKHW-0003eG-OI for emacs-orgmode@gnu.org; Wed, 07 Dec 2011 11:23:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYKHR-0006pi-Ab for emacs-orgmode@gnu.org; Wed, 07 Dec 2011 11:23:42 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:48814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYKHR-0006ov-0t for emacs-orgmode@gnu.org; Wed, 07 Dec 2011 11:23:37 -0500 Received: by bkbzt12 with SMTP id zt12so781906bkb.0 for ; Wed, 07 Dec 2011 08:23:35 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Since I've been studying PyLint a little bit I tried to write my own reporter, and in particular I wrote a reporter that writes in org-mode ;) For example running (on a random source file): org_pylint_reporter.py src_obj_check.py I get something like: * TODO [[file:/home/andrea/pydbgr/PIL.PcdImagePlugin.py::49][PIL.PcdImagePlugin]] :W0511: * TODO [[file:/home/andrea/pydbgr/PIL.PcdImagePlugin.py::1][PIL.PcdImagePlugin]] :C0111: Where the tag is the error and then we have a nice "jumpable" org-link to the offending line. Not sure what to do with it yet, but something cool like bug tracking in org-mode might come out of this, hope it's of inspiration for someone else at least :) The whole script is here: https://github.com/AndreaCrotti/scripts/blob/master/org_pylint_reporter.py