KotlinInspectionSuppressor: introduce more precise quick-fix names

Related to KT-11154, KT-25169
This commit is contained in:
Mikhail Glukhikh
2018-06-29 11:58:28 +03:00
parent a51bda64dc
commit 537655a4c2
3 changed files with 6 additions and 2 deletions
@@ -22,6 +22,8 @@ class KotlinInspectionSuppressor : InspectionSuppressor {
object : SuppressQuickFix {
override fun getFamilyName() = it.familyName
override fun getName() = it.text
override fun applyFix(project: Project, descriptor: ProblemDescriptor) = it.invoke(project, null, descriptor.psiElement)
override fun isAvailable(project: Project, context: PsiElement) = it.isAvailable(project, null, context)
@@ -1,4 +1,4 @@
// "Suppress Warnings" "true"
// "Suppress 'SpellCheckingInspection' for val str" "true"
// TOOL: com.intellij.spellchecker.inspections.SpellCheckingInspection
// ACTION: Add 'const' modifier
// ACTION: Typo: Change to...
@@ -12,5 +12,6 @@
// ACTION: Convert property initializer to getter
// ACTION: Inject language or reference
// ACTION: To raw string literal
// ACTION: Suppress 'SpellCheckingInspection' for file suppressAvailable.kt
val str = "<caret>kjsghkjshtiurhuig"
@@ -1,4 +1,4 @@
// "Suppress Warnings" "true"
// "Suppress 'SpellCheckingInspection' for val str" "true"
// TOOL: com.intellij.spellchecker.inspections.SpellCheckingInspection
// ACTION: Add 'const' modifier
// ACTION: Typo: Change to...
@@ -12,6 +12,7 @@
// ACTION: Convert property initializer to getter
// ACTION: Inject language or reference
// ACTION: To raw string literal
// ACTION: Suppress 'SpellCheckingInspection' for file suppressAvailable.kt
@Suppress("SpellCheckingInspection")
val str = "kjsghkjshtiurhuig"