From 944ce6476364a4c50e153329edcb0a796b68931b Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Mon, 8 Feb 2016 14:29:30 -0500 Subject: [PATCH] Move PHP default threshold to 28 When analyzing the WordPress project at the current default mass threshold of 10, it was observed that Duplications found only by Platform had masses of 27 or less, while Duplications found by both Platform and Classic had masses of 28 or greater. Note: there were no Duplications found only by Classic. Therefore, a threshold of 28 should ensure an analysis on Platform emits the same Duplication issues as on Classic. --- lib/cc/engine/analyzers/php/main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cc/engine/analyzers/php/main.rb b/lib/cc/engine/analyzers/php/main.rb index 4bdeb75c..e5bbf3f2 100644 --- a/lib/cc/engine/analyzers/php/main.rb +++ b/lib/cc/engine/analyzers/php/main.rb @@ -14,7 +14,7 @@ class Main < CC::Engine::Analyzers::Base "**/*.inc", "**/*.module" ] - DEFAULT_MASS_THRESHOLD = 10 + DEFAULT_MASS_THRESHOLD = 28 POINTS_PER_OVERAGE = 100_000 private