Skip to content
Snippets Groups Projects
Unverified Commit 10be7c04 authored by Ian Cordasco's avatar Ian Cordasco
Browse files

Fix bug with Flake8 plugin.

By default, McCabe's max_complexity value should be the command-line
default.
parent 43488cbd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -16,7 +16,7 @@ try:
except ImportError: # Python 2.5
from flake8.util import ast, iter_child_nodes
 
__version__ = '0.5.0'
__version__ = '0.5.1'
 
 
class ASTVisitor(object):
Loading
Loading
@@ -229,7 +229,7 @@ class McCabeChecker(object):
version = __version__
_code = 'C901'
_error_tmpl = "C901 %r is too complex (%d)"
max_complexity = 0
max_complexity = -1
 
def __init__(self, tree, filename):
self.tree = tree
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment