summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
Diffstat (limited to 'monkey')
-rw-r--r--monkey/rules.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/monkey/rules.py b/monkey/rules.py
index fcd9582..c8e1a65 100644
--- a/monkey/rules.py
+++ b/monkey/rules.py
@@ -109,6 +109,7 @@ def suggest_unknown_pattern(bugs, program, patterns):
node = node.parent()
if not any(n is node for n in top_nodes):
top_nodes.append(node)
+ break # report only one pattern at a time
if hints:
hints.append({
'id': 'monkey_unknown',