com.jetbrains.plugin.structure.intellij.problems.RemappedPluginProblems.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-intellij Show documentation
Show all versions of structure-intellij Show documentation
Library for parsing JetBrains IDE plugins. Can be used to verify that plugin complies with the JetBrains Marketplace requirements.
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 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)
}