Skip to content

Instantly share code, notes, and snippets.

@reidrac
Created January 17, 2013 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reidrac/4554257 to your computer and use it in GitHub Desktop.
Save reidrac/4554257 to your computer and use it in GitHub Desktop.
Example pylint output.
pylint swiftnbd/control.py
No config file found, using default configuration
************* Module swiftnbd.control
C: 45,0: Line too long (85/80)
C: 55,0: Line too long (83/80)
C: 63,0: Line too long (90/80)
C: 67,0: Line too long (98/80)
C: 71,0: Line too long (87/80)
C:103,0: Line too long (82/80)
C:115,0: Line too long (87/80)
C:124,0: Line too long (98/80)
C:126,0: Line too long (84/80)
C:127,0: Line too long (88/80)
C:128,0: Line too long (84/80)
C:148,0: Line too long (112/80)
C:173,0: Line too long (97/80)
C:186,0: Line too long (85/80)
C:213,0: Line too long (110/80)
C:244,0: Line too long (121/80)
C:259,0: Line too long (87/80)
C: 36,0:Main: Missing docstring
C: 45,8:Main.__init__: Invalid name "p" for type variable (should match [a-z_][a-z0-9_]{2,30}$)
C: 51,8:Main.__init__: Invalid name "p" for type variable (should match [a-z_][a-z0-9_]{2,30}$)
C: 55,8:Main.__init__: Invalid name "p" for type variable (should match [a-z_][a-z0-9_]{2,30}$)
C: 87,4:Main.run: Missing docstring
C: 90,4:Main.do_list: Missing docstring
C:178,4:Main.do_unlock: Missing docstring
C:205,4:Main.do_download: Missing docstring
R:205,4:Main.do_download: Too many branches (13/12)
Report
======
151 statements analysed.
Messages by category
--------------------
+-----------+-------+---------+-----------+
|type |number |previous |difference |
+===========+=======+=========+===========+
|convention |25 |24 |+1.00 |
+-----------+-------+---------+-----------+
|refactor |1 |1 |= |
+-----------+-------+---------+-----------+
|warning |0 |0 |= |
+-----------+-------+---------+-----------+
|error |0 |0 |= |
+-----------+-------+---------+-----------+
Messages
--------
+-----------+------------+
|message id |occurrences |
+===========+============+
|C0301 |17 |
+-----------+------------+
|C0111 |5 |
+-----------+------------+
|C0103 |3 |
+-----------+------------+
|R0912 |1 |
+-----------+------------+
Global evaluation
-----------------
Your code has been rated at 8.28/10 (previous run: 8.34/10)
Duplication
-----------
+-------------------------+------+---------+-----------+
| |now |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines |0 |0 |= |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |0.000 |= |
+-------------------------+------+---------+-----------+
External dependencies
---------------------
::
swiftclient
\-client (swiftnbd.control)
Raw metrics
-----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |180 |83.72 |180 |= |
+----------+-------+------+---------+-----------+
|docstring |29 |13.49 |29 |= |
+----------+-------+------+---------+-----------+
|comment |2 |0.93 |1 |+1.00 |
+----------+-------+------+---------+-----------+
|empty |4 |1.86 |4 |= |
+----------+-------+------+---------+-----------+
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |1 |1 |= |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |1 |1 |= |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |6 |6 |= |33.33 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|function |0 |0 |= |0 |0 |
+---------+-------+-----------+-----------+------------+---------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment