From 265e44cd53d43f581f13fb31dccdc4da35144dc1 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 27 Feb 2017 18:32:35 +0100 Subject: monkey.rules: only report the first unknown pattern --- monkey/rules.py | 1 + 1 file changed, 1 insertion(+) (limited to 'monkey') 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', -- cgit v1.2.1