Created
April 5, 2011 22:08
-
-
Save timo/904689 to your computer and use it in GitHub Desktop.
python flymake ftplugin
This file contains 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
if !exists('b:did_flymake') | |
let b:did_flymake = 1 | |
autocmd BufWritePost <buffer> | |
\ call FlyMake('cd %s; export FN="%s"; pylint "$FN"; pep8 "$FN"; pyflakes "$FN"', | |
\ '[^:]*:\([0-9]*\):\%\(.*:\)? \(.*\)', | |
\ '.*:\([0-9]*\):\%\(.*:\)? \(.*\)') | |
autocmd BufWinLeave <buffer> call FlyMakeCloseWindows() | |
endif |
This file contains 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
No config file found, using default configuration | |
************* Module git-visbranch | |
C: 24: Line too long (106/80) | |
C: 80: Line too long (83/80) | |
C: 81: Line too long (103/80) | |
C: 87: Line too long (89/80) | |
C: 89: Line too long (115/80) | |
C: 1: Invalid name "git-visbranch" (should match (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$) | |
C: 1: Missing docstring | |
C: 7: Invalid name "parser" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) | |
C: 13: Invalid name "options" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) | |
C: 13: Invalid name "args" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) | |
W: 19: Statement seems to have no effect | |
E: 19: Module 'subprocess' has no 'check_output' member | |
W: 20:proc_out: Redefining name 'args' from outer scope (line 13) | |
C: 20:proc_out: Missing docstring | |
E: 21:proc_out: Module 'subprocess' has no 'check_output' member | |
W: 23:proc_out: Redefining name 'args' from outer scope (line 13) | |
C: 23:proc_out: Missing docstring | |
C: 24:proc_out: Invalid name "po" (should match [a-z_][a-z0-9_]{2,30}$) | |
C: 29: Invalid name "gcol" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) | |
C: 31: Invalid name "branches" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) | |
R: 32:Branch: Too few public methods (0/2) | |
C: 45:Fetchspec: Missing docstring | |
R: 45:Fetchspec: Too few public methods (0/2) | |
C: 59: Invalid name "remotes" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) | |
W: 64:Remote.__init__: Dangerous default value [] as argument | |
W: 64:Remote.__init__: Unused argument 'url' | |
R: 60:Remote: Too few public methods (0/2) | |
C: 73:get_branches: Missing docstring | |
W: 75:get_branches: Used builtin function 'filter' | |
C: 84:get_remotes: Missing docstring | |
W: 89:get_remotes: Used builtin function 'filter' | |
W: 90:get_remotes: Used builtin function 'map' | |
W: 97:get_remotes: Used builtin function 'filter' | |
E:104: Undefined variable 'current_branch' | |
Report | |
====== | |
66 statements analysed. | |
Messages by category | |
-------------------- | |
+-----------+-------+---------+-----------+ | |
|type |number |previous |difference | | |
+===========+=======+=========+===========+ | |
|convention |19 |19 |= | | |
+-----------+-------+---------+-----------+ | |
|refactor |3 |3 |= | | |
+-----------+-------+---------+-----------+ | |
|warning |9 |9 |= | | |
+-----------+-------+---------+-----------+ | |
|error |3 |3 |= | | |
+-----------+-------+---------+-----------+ | |
Messages | |
-------- | |
+-----------+------------+ | |
|message id |occurrences | | |
+===========+============+ | |
|C0103 |8 | | |
+-----------+------------+ | |
|C0111 |6 | | |
+-----------+------------+ | |
|C0301 |5 | | |
+-----------+------------+ | |
|W0141 |4 | | |
+-----------+------------+ | |
|R0903 |3 | | |
+-----------+------------+ | |
|W0621 |2 | | |
+-----------+------------+ | |
|E1101 |2 | | |
+-----------+------------+ | |
|W0613 |1 | | |
+-----------+------------+ | |
|W0104 |1 | | |
+-----------+------------+ | |
|W0102 |1 | | |
+-----------+------------+ | |
|E0602 |1 | | |
+-----------+------------+ | |
Global evaluation | |
----------------- | |
Your code has been rated at 3.03/10 (previous run: 3.03/10) | |
Statistics by type | |
------------------ | |
+---------+-------+-----------+-----------+------------+---------+ | |
|type |number |old number |difference |%documented |%badname | | |
+=========+=======+===========+===========+============+=========+ | |
|module |1 |1 |= |0.00 |100.00 | | |
+---------+-------+-----------+-----------+------------+---------+ | |
|class |3 |3 |= |66.67 |0.00 | | |
+---------+-------+-----------+-----------+------------+---------+ | |
|method |8 |8 |= |100.00 |0.00 | | |
+---------+-------+-----------+-----------+------------+---------+ | |
|function |4 |4 |= |0.00 |0.00 | | |
+---------+-------+-----------+-----------+------------+---------+ | |
Duplication | |
----------- | |
+-------------------------+------+---------+-----------+ | |
| |now |previous |difference | | |
+=========================+======+=========+===========+ | |
|nb duplicated lines |0 |0 |= | | |
+-------------------------+------+---------+-----------+ | |
|percent duplicated lines |0.000 |0.000 |= | | |
+-------------------------+------+---------+-----------+ | |
Raw metrics | |
----------- | |
+----------+-------+------+---------+-----------+ | |
|type |number |% |previous |difference | | |
+==========+=======+======+=========+===========+ | |
|code |74 |88.10 |74 |= | | |
+----------+-------+------+---------+-----------+ | |
|docstring |3 |3.57 |3 |= | | |
+----------+-------+------+---------+-----------+ | |
|comment |3 |3.57 |3 |= | | |
+----------+-------+------+---------+-----------+ | |
|empty |4 |4.76 |4 |= | | |
+----------+-------+------+---------+-----------+ | |
git-visbranch:20:5: E301 expected 1 blank line, found 0 | |
git-visbranch:24:80: E501 line too long (106 characters) | |
git-visbranch:32:1: E302 expected 2 blank lines, found 0 | |
git-visbranch:85:73: W291 trailing whitespace | |
git-visbranch:93:32: E225 missing whitespace around operator | |
git-visbranch:23: redefinition of function 'proc_out' from line 20 | |
git-visbranch:104: undefined name 'current_branch' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment