Skip to content

Instantly share code, notes, and snippets.

@alyx
Created May 30, 2011 22:28
Show Gist options
  • Save alyx/999578 to your computer and use it in GitHub Desktop.
Save alyx/999578 to your computer and use it in GitHub Desktop.
************* Module bot
C: 17: Invalid name "cg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 18: Invalid name "cfile" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 21: Invalid name "cg" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 22: Invalid name "cfile" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 24: Invalid name "conf" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
W: 62:IRCCli.onjoin: No exception type(s) specified
E: 61:IRCCli.onjoin: Class 'events' has no 'join' member
C: 62:IRCCli.onjoin: More than one statement on a single line
W: 66:IRCCli.onpart: No exception type(s) specified
E: 65:IRCCli.onpart: Class 'events' has no 'part' member
C: 66:IRCCli.onpart: More than one statement on a single line
W: 70:IRCCli.onkick: No exception type(s) specified
E: 69:IRCCli.onkick: Class 'events' has no 'kick' member
C: 70:IRCCli.onkick: More than one statement on a single line
W: 74:IRCCli.onquit: No exception type(s) specified
E: 73:IRCCli.onquit: Class 'events' has no 'quit' member
C: 74:IRCCli.onquit: More than one statement on a single line
E: 77:IRCCli.onprivmsg: Class 'events' has no 'command' member
E: 78:IRCCli.onprivmsg: Class 'events' has no 'message' member
W: 84:IRCCli.rfc_parse: No exception type(s) specified
E: 83:IRCCli.rfc_parse: Class 'events' has no 'rfc' member
C: 84:IRCCli.rfc_parse: More than one statement on a single line
W: 88:IRCCli.onmode: No exception type(s) specified
E: 87:IRCCli.onmode: Class 'events' has no 'mode' member
C: 88:IRCCli.onmode: More than one statement on a single line
C: 95: Invalid name "bot" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
R: 98:events: Too many instance attributes (10/7)
C: 98:events: Invalid name "events" (should match [A-Z_][a-zA-Z0-9]+$)
C: 98:events: Missing docstring
R: 98:events: Too few public methods (0/2)
C:113: Invalid name "events" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C:124: Invalid name "rfc_handler" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C:139: More than one statement on a single line
C:151: More than one statement on a single line
C:151: Invalid name "pid" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C:152: More than one statement on a single line
E:152: Using variable 'e' before assignment
C:156: More than one statement on a single line
C:156: Invalid name "pid" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C:157: More than one statement on a single line
W:167: Access to a protected member _exit of a client class
W:169: Access to a protected member _exit of a client class
C:172: Invalid name "pf" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
W:192: No exception type(s) specified
W:192: Expression "[logger.error(tb) for tb in traceback.format_exc(5).split('\n')]" is assigned to nothing
W:193: Unnecessary pass statement
W: 6: Unused import modules
W: 6: Unused import etc
W: 10: Unused import green
W: 7: Unused import pseudo
Report
======
142 statements analysed.
External dependencies
---------------------
::
eventlet
\-green (bot)
\-os (bot)
\-socket (bot)
\-time (bot)
Duplication
-----------
+-------------------------+------+---------+-----------+
| |now |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines |0 |0 |= |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |0.000 |= |
+-------------------------+------+---------+-----------+
Raw metrics
-----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |135 |67.50 |135 |= |
+----------+-------+------+---------+-----------+
|docstring |20 |10.00 |20 |= |
+----------+-------+------+---------+-----------+
|comment |19 |9.50 |19 |= |
+----------+-------+------+---------+-----------+
|empty |26 |13.00 |26 |= |
+----------+-------+------+---------+-----------+
Messages by category
--------------------
+-----------+-------+---------+-----------+
|type |number |previous |difference |
+===========+=======+=========+===========+
|convention |24 |24 |= |
+-----------+-------+---------+-----------+
|refactor |2 |2 |= |
+-----------+-------+---------+-----------+
|warning |15 |15 |= |
+-----------+-------+---------+-----------+
|error |9 |9 |= |
+-----------+-------+---------+-----------+
Messages
--------
+-----------+------------+
|message id |occurrences |
+===========+============+
|C0103 |12 |
+-----------+------------+
|C0321 |11 |
+-----------+------------+
|E1101 |8 |
+-----------+------------+
|W0702 |7 |
+-----------+------------+
|W0611 |4 |
+-----------+------------+
|W0212 |2 |
+-----------+------------+
|W0107 |1 |
+-----------+------------+
|W0106 |1 |
+-----------+------------+
|R0903 |1 |
+-----------+------------+
|R0902 |1 |
+-----------+------------+
|E0601 |1 |
+-----------+------------+
|C0111 |1 |
+-----------+------------+
Global evaluation
-----------------
Your code has been rated at 3.94/10 (previous run: 3.94/10)
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |1 |1 |= |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |2 |2 |= |50.00 |50.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |9 |9 |= |100.00 |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