Adjusted Threshold for PHP Duplication
We've just released a new version of our duplication engine with an adjusted default "mass threshold" for PHP. We've increased the threshold from 10 to 28. This brings it in line with our Classic analysis, so a repository that moves from Classic to Platform shouldn't see any new instances of PHP duplication as a result.
What does this mean?
Instances of duplication have a "mass", which is a measure of how big that portion of code is. Bigger bits of duplicated code are considered more of a problem than smaller bits. We use the mass to quantify this.
You can read more about it in our docs.
Increasing this threshold means code now has to be slightly bigger before we'll consider it an issue.
How does this impact you?
You should find that any instances of duplication with a mass between 10 and 28 will no longer be flagged as issues in your code base. This may result in a small uptick in ratings.
If you prefer to keep the threshold at 10 (or set it to any other number), you can do so by configuring it in your
engines: duplication: enabled: true config: languages: php: mass_threshold: 10