For reference, just in case anyone comes across this defect who may be trying to integrate output with this plugin from "epylint", called from within another python script, here's a trick I found to get it working.

As mentioned on the pylint website, you would typically make such a call using some code that looks something like this:

from pylint import epylint as lint
lint.py_run("MyFile.py")

However, for some reason this method will ignore some of the settings found in the pylintrc file as well as command line parameters provided to the py_run() method. This includes the 'msg-template' property mentioned above. After looking into the implementation of the py_run() method I noticed that the script essentially offloads it's work to an external console tool which defaults to "epylint" (epylint.bat on Windows). It seems that this command line tool is what is to blame for this odd behavior... but I won't get into the details of that here.

Suffice it to say, typically users will use the "pylint" (pylint.bat on Windows) on the shell rather than this epylint tool. Information on the differences between these two tools is sparse at best, but I've discovered that if you use the same parameters when calling the more conventional 'pylint' tool everything works as expected. Luckily, the run_py() method allows you to overload the command line tool used when offloading the work, so we can easily redirect it to this more conventional script using code something like this:

from pylint import epylint as lint
lint.py_run("MyFile.py", script="pylint")

Making this minor adjustment, and ensuring your associated pylintrc file has the 'msg-template' declaration Chris mentions above, should result in a workable solution for this plugin.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to