Skip to content

Commit 944ce64

Browse files
committed
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.
1 parent 41d4b15 commit 944ce64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cc/engine/analyzers/php/main.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Main < CC::Engine::Analyzers::Base
1414
"**/*.inc",
1515
"**/*.module"
1616
]
17-
DEFAULT_MASS_THRESHOLD = 10
17+
DEFAULT_MASS_THRESHOLD = 28
1818
POINTS_PER_OVERAGE = 100_000
1919

2020
private

0 commit comments

Comments
 (0)