more comm autoreport

This commit is contained in:
Thibault Duplessis 2018-12-09 16:55:14 +07:00
parent df27b4fd90
commit 90f697fb3c

View file

@ -54,7 +54,7 @@ case class TextReport(textType: TextType, ratios: List[Double]) {
def minRatios = textType.rotation / 15
def nbBad = ratios.count(_ > TextReport.unacceptableRatio)
def tolerableNb = (ratios.size / 10) atLeast 4
def tolerableNb = (ratios.size / 10) atLeast 3
def unacceptable = (ratios.size >= minRatios) && (nbBad > tolerableNb)
}