All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jetbrains.plugin.structure.intellij.problems.RemappedPluginProblems.kt Maven / Gradle / Ivy

Go to download

Library for parsing JetBrains IDE plugins. Can be used to verify that plugin complies with the JetBrains Marketplace requirements.

There is a newer version: 3.290
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy