Skip to main content

PyLint plugin to allow TUSAR output format

Project description

.. -*- restructuredtext -*-

PyLint To TUSAR plugin

This is a PyLint__ plugin that enables a **TUSAR** output format.


.. note:: **TUSAR** stands for *Thales Unified Sofware Analysis Report*.
It is a generic XML metric format composed of 4 categories:

* Coverage
* Measures
* Test
* Violations

**TUSAR** is defined by multiple XML Schema Definitions that can be found here__.


For more information about **TUSAR**, please read `Jenkins wiki`__.



You can install the ``pylint2tusar`` package with ``easy_install``
or ``pip``: ::

$ easy_install pylint2tusar

Or with the windows installer available on this page.

.. attention:: ``pylint2tusar`` has a dependency to ``pylint``. If you don't use
``easy_install`` or ``pip``, dependencies will not be installed automatically.
You will have to install them separately by hand.


Once ``pylint2tusar`` is installed, you can invoke pylint and choose the **TUSAR**
output format: ::

$ pylint --load-plugins=pylint2tusar --output-format=tusar <packages to analyse>
No config file found, using default configuration
<?xml version="1.0" encoding="utf-8"?>
<tusar:tusar xmlns:duplications="http://www.thal......ions/v4">
<violations:violations tool="pylint">
<violations:file path="pylint2tusar\">
<violations:violation key="C0111" line="1" message="Missing docstring"/>
<violations:violation key="C0111" line="21" message="Missing docstring"/>
<violations:violation key="W0212" line="23" message="Access to a protected member"/>
<violations:file path="pylint2tusar\">
<violations:violation key="C0301" line="30" message="Line too long (90/80)"/>
<violations:violation key="C0301" line="31" message="Line too long (82/80)"/>
<violations:violation key="C0301" line="33" message="Line too long (98/80)"/>
<violations:violation key="C0301" line="73" message="Line too long (84/80)"/>
<violations:violation key="C0301" line="87" message="Line too long (89/80)"/>
<violations:violation key="C0301" line="93" message="Line too long (93/80)"/>
<violations:violation key="C0301" line="104" message="Line too long (83/80)"/>
<violations:violation key="C0111" line="1" message="Missing docstring"/>
<violations:violation key="C0111" line="20" message="Missing docstring"/>
<violations:violation key="C0111" line="69" message="Missing docstring"/>
<violations:violation key="R0913" line="99" message="Too many arguments (6/5)"/>
<violations:violation key="C0111" line="99" message="Missing docstring"/>
<violations:violation key="W0613" line="99" message="Unused argument 'obj'"/>
<violations:violation key="C0323" line="152" message="Operator not followed by a space"/>
<measures:measures tool="pylint">
<duplications:duplications tool="pylint"/>
<size:size tool="pylint">
<size:resource type="PROJECT" value="">
<size:measure key="statements" value="107"/>
<size:measure key="lines" value="141"/>
<size:measure key="ncloc" value="120"/>
<size:measure key="files" value="2"/>
<size:measure key="comment_lines" value="14"/>
<size:measure key="duplicated_lines" value="0"/>
<size:measure key="classes" value="1"/>
<size:measure key="functions" value="6"/>

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for pylint2tusar, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size pylint2tusar-0.3.win32.exe (205.9 kB) File type Windows Installer Python version 2.7 Upload date Hashes View
Filename, size (9.2 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