emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: pylint to org reporting
Date: Wed, 07 Dec 2011 16:23:30 +0000	[thread overview]
Message-ID: <4EDF9302.4000908@gmail.com> (raw)

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

                 reply	other threads:[~2011-12-07 16:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EDF9302.4000908@gmail.com \
    --to=andrea.crotti.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).