Introduce CompilerMessageSeverity.STRONG_WARNING
This is a severity for mandatory warnings, i.e. those which should be reported in any case, even if there are compilation errors
This commit is contained in:
+6
-2
@@ -47,12 +47,16 @@ class KotlinMessager(private val messageCollector: MessageCollector) : Messager
|
||||
errorCount++
|
||||
CompilerMessageSeverity.ERROR
|
||||
}
|
||||
Kind.WARNING, Kind.MANDATORY_WARNING -> {
|
||||
Kind.WARNING -> {
|
||||
warningCount++
|
||||
CompilerMessageSeverity.WARNING
|
||||
}
|
||||
Kind.MANDATORY_WARNING -> {
|
||||
warningCount++
|
||||
CompilerMessageSeverity.STRONG_WARNING
|
||||
}
|
||||
else -> CompilerMessageSeverity.LOGGING
|
||||
}
|
||||
messageCollector.report(severity, msg.toString(), CompilerMessageLocation.NO_LOCATION)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user