Created
February 19, 2010 22:58
-
-
Save fitoria/309327 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fitoria@fitoria-laptop:/media/disk/home/fitoria/code/msn/emesene/mesinyer/plugins/music$ pylint handler_amarok2.py | |
| No config file found, using default configuration | |
| ************* Module handler_amarok2 | |
| W: 47: Bad indentation. Found 11 spaces, expected 12 | |
| C: 1: Missing docstring | |
| W: 25:AmarokHandler.__init__: Catch "Exception" | |
| C: 14:AmarokHandler.__init__: Comma not followed by a space | |
| dbus_version = getattr(dbus, 'version', (0,0,0)) | |
| ^^ | |
| C: 15:AmarokHandler.__init__: Operator not followed by a space | |
| if dbus_version >=(0,41,0) and dbus_version < (0, 80, 0): | |
| ^^ | |
| C: 25:AmarokHandler.__init__: Invalid name "e" (should match [a-z_][a-z0-9_]{2,30}$) | |
| W: 25:AmarokHandler.__init__: Unused variable 'e' | |
| C: 30:AmarokHandler.reconnect: Missing docstring | |
| W: 36:AmarokHandler.reconnect: No exception type(s) specified | |
| C: 33:AmarokHandler.reconnect: Operator not preceded by a space | |
| self.iface= self.bus.get_object(self.iface_name, self.iface_path) | |
| ^ | |
| C: 36:AmarokHandler.reconnect: Operator not preceded by a space | |
| self.iface=None | |
| ^ | |
| C: 39:AmarokHandler.is_running: Missing docstring | |
| W: 47:AmarokHandler.is_running: No exception type(s) specified | |
| C: 49:AmarokHandler.is_playing: Missing docstring | |
| C: 54:AmarokHandler.is_playing: Operator not preceded by a space | |
| if status[0]==0: | |
| ^^ | |
| C: 58:AmarokHandler.get_current_song: Missing docstring | |
| W: 31:AmarokHandler.reconnect: Attribute 'bus' defined outside __init__ | |
| W: 33:AmarokHandler.reconnect: Attribute 'iface' defined outside __init__ | |
| W: 2: Unused import os | |
| Report | |
| ====== | |
| 52 statements analysed. | |
| Raw metrics | |
| ----------- | |
| +----------+-------+------+---------+-----------+ | |
| |type |number |% |previous |difference | | |
| +==========+=======+======+=========+===========+ | |
| |code |57 |96.61 |NC |NC | | |
| +----------+-------+------+---------+-----------+ | |
| |docstring |1 |1.69 |NC |NC | | |
| +----------+-------+------+---------+-----------+ | |
| |comment |0 |0.00 |NC |NC | | |
| +----------+-------+------+---------+-----------+ | |
| |empty |1 |1.69 |NC |NC | | |
| +----------+-------+------+---------+-----------+ | |
| Duplication | |
| ----------- | |
| +-------------------------+------+---------+-----------+ | |
| | |now |previous |difference | | |
| +=========================+======+=========+===========+ | |
| |nb duplicated lines |0 |NC |NC | | |
| +-------------------------+------+---------+-----------+ | |
| |percent duplicated lines |0.000 |NC |NC | | |
| +-------------------------+------+---------+-----------+ | |
| External dependencies | |
| --------------------- | |
| :: | |
| dbus (handler_amarok2) | |
| \-glib (handler_amarok2) | |
| \-mainloop | |
| \-glib (handler_amarok2) | |
| Statistics by type | |
| ------------------ | |
| +---------+-------+-----------+-----------+------------+---------+ | |
| |type |number |old number |difference |%documented |%badname | | |
| +=========+=======+===========+===========+============+=========+ | |
| |module |1 |NC |NC |0.00 |0.00 | | |
| +---------+-------+-----------+-----------+------------+---------+ | |
| |class |1 |NC |NC |100.00 |0.00 | | |
| +---------+-------+-----------+-----------+------------+---------+ | |
| |method |5 |NC |NC |20.00 |0.00 | | |
| +---------+-------+-----------+-----------+------------+---------+ | |
| |function |0 |NC |NC |0.00 |0.00 | | |
| +---------+-------+-----------+-----------+------------+---------+ | |
| Messages by category | |
| -------------------- | |
| +-----------+-------+---------+-----------+ | |
| |type |number |previous |difference | | |
| +===========+=======+=========+===========+ | |
| |convention |11 |NC |NC | | |
| +-----------+-------+---------+-----------+ | |
| |refactor |0 |NC |NC | | |
| +-----------+-------+---------+-----------+ | |
| |warning |8 |NC |NC | | |
| +-----------+-------+---------+-----------+ | |
| |error |0 |NC |NC | | |
| +-----------+-------+---------+-----------+ | |
| Messages | |
| -------- | |
| +-----------+-----------+ | |
| |message id |occurences | | |
| +===========+===========+ | |
| |C0111 |5 | | |
| +-----------+-----------+ | |
| |C0322 |3 | | |
| +-----------+-----------+ | |
| |W0702 |2 | | |
| +-----------+-----------+ | |
| |W0201 |2 | | |
| +-----------+-----------+ | |
| |W0703 |1 | | |
| +-----------+-----------+ | |
| |W0612 |1 | | |
| +-----------+-----------+ | |
| |W0611 |1 | | |
| +-----------+-----------+ | |
| |W0311 |1 | | |
| +-----------+-----------+ | |
| |C0324 |1 | | |
| +-----------+-----------+ | |
| |C0323 |1 | | |
| +-----------+-----------+ | |
| |C0103 |1 | | |
| +-----------+-----------+ | |
| Global evaluation | |
| ----------------- | |
| Your code has been rated at 6.35/10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment