onlytiancai
ccc7acc62e
1. mccabe.py support # NOQA 2. run.py support ignore some errors 3. run.py add max_line_length default value
2012-09-12 11:03:20 +08:00
Tarek Ziade
dd92d52f06
make sure mccacbe catches the syntax errors as warnings
2012-08-14 18:16:24 +02:00
Tarek Ziade
ecc81ce46d
removed a couple of slashes
2012-07-10 16:26:17 +02:00
Steven Kryskalla
1d4e9a8968
mccabe warning message was missing a ":" after the column number
...
update tests to match the new format with the warning code
tests pass in python 2.7 and 3.2
2012-02-23 15:03:21 -08:00
Steven Kryskalla
a2ac0c3035
add warning code W901 to mccabe
2012-02-23 12:20:44 -08:00
Tarek Ziade
ef4b069970
Fixed the exception scope behavior
2012-02-21 14:28:12 +01:00
Tarek Ziade
cf16bf82b9
cleanup
2012-02-21 13:04:01 +01:00
Tarek Ziade
b29f197d69
fixed the mccabe complexity for py3 and py2 as well
2012-02-21 11:31:16 +01:00
Tarek Ziade
0ac0cec20f
more py3 fixes
2012-02-14 21:27:41 +01:00
Tarek Ziade
aa4a855c38
starting a py2/py3 compatible version
2012-02-14 21:15:54 +01:00
Tarek Ziade
87dc65eac1
cleanup
2011-11-09 14:49:16 +01:00
Tarek Ziade
ff8a99cd62
make sure flake8 is clean
2011-11-09 14:48:02 +01:00
Chris Adams
b56abdedf3
mccabe check: gracefully handle compile failures
...
compiler.parse() will fail with an unhandled AttributeError when called with a
module. Now a message will be printed to stderr and the mccabe check will return
0 rather than crashing.
2011-09-21 18:30:49 -04:00
Tarek Ziade
e6068a3a38
fixed mccabe for global loops and nested functions
2011-02-15 11:55:10 +01:00
Tarek Ziade
263533c9fd
added the mccabe metric
2011-02-13 11:43:19 +01:00