Change RESTRICTED_CONSOLE_COMMAND_OWNER to warning

This commit is contained in:
Him188 2020-11-29 19:17:28 +08:00
parent 4803a21488
commit 55c2bdefd2

View File

@ -15,6 +15,7 @@ import org.jetbrains.kotlin.diagnostics.DiagnosticFactory1.create
import org.jetbrains.kotlin.diagnostics.DiagnosticFactory2.create import org.jetbrains.kotlin.diagnostics.DiagnosticFactory2.create
import org.jetbrains.kotlin.diagnostics.Errors import org.jetbrains.kotlin.diagnostics.Errors
import org.jetbrains.kotlin.diagnostics.Severity.ERROR import org.jetbrains.kotlin.diagnostics.Severity.ERROR
import org.jetbrains.kotlin.diagnostics.Severity.WARNING
import org.jetbrains.kotlin.psi.* import org.jetbrains.kotlin.psi.*
/** /**
@ -57,7 +58,7 @@ object MiraiConsoleErrors {
// val INAPPLICABLE_COMMAND_ANNOTATION = create<PsiElement, String>(ERROR) // val INAPPLICABLE_COMMAND_ANNOTATION = create<PsiElement, String>(ERROR)
@JvmField @JvmField
val RESTRICTED_CONSOLE_COMMAND_OWNER = create<KtElement>(ERROR) val RESTRICTED_CONSOLE_COMMAND_OWNER = create<KtElement>(WARNING)
@JvmField @JvmField
val ILLEGAL_COMMAND_DECLARATION_RECEIVER = create<KtTypeReference>(ERROR) val ILLEGAL_COMMAND_DECLARATION_RECEIVER = create<KtTypeReference>(ERROR)