more comm autoreport
This commit is contained in:
parent
df27b4fd90
commit
90f697fb3c
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue