com.jetbrains.plugin.structure.intellij.problems.RemappedPluginProblems.kt Maven / Gradle / Ivy
package com.jetbrains.plugin.structure.intellij.problems
import com.jetbrains.plugin.structure.base.problems.PluginProblem
import kotlin.reflect.KClass
sealed class RemappedLevel
object IgnoredLevel : RemappedLevel()
data class StandardLevel(val originalLevel: PluginProblem.Level) : RemappedLevel()
inline fun error(): Map, RemappedLevel> {
return mapOf(T::class to StandardLevel(PluginProblem.Level.ERROR))
}
inline fun unacceptableWarning(): Map, RemappedLevel> {
return mapOf(T::class to StandardLevel(PluginProblem.Level.UNACCEPTABLE_WARNING))
}
inline fun warning(): Map, RemappedLevel> {
return mapOf(T::class to StandardLevel(PluginProblem.Level.WARNING))
}
inline fun ignore(): Map, RemappedLevel> {
return mapOf(T::class to IgnoredLevel)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy