Support spellchecking in Kotlin string literals; remove unused and unnecessary support for custom suppressions of spelling errors

This commit is contained in:
Dmitry Jemerov
2015-02-24 19:41:53 +01:00
parent e0e203d7db
commit 35e8e4d49a
5 changed files with 79 additions and 16 deletions
@@ -0,0 +1,50 @@
<problems>
<problem>
<file>spelling.kt</file>
<line>1</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/spelling.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Typo</problem_class>
<description>Typo: In word 'xyzzy'</description>
</problem>
<problem>
<file>spelling.kt</file>
<line>2</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/spelling.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Typo</problem_class>
<description>Typo: In word 'xyzzy'</description>
</problem>
<problem>
<file>spelling.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/spelling.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Typo</problem_class>
<description>Typo: In word 'xyzzy'</description>
</problem>
<problem>
<file>spelling.kt</file>
<line>4</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/spelling.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Typo</problem_class>
<description>Typo: In word 'xyzzy'</description>
</problem>
<problem>
<file>spelling.kt</file>
<line>5</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/spelling.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Typo</problem_class>
<description>Typo: In word 'xyzzy'</description>
</problem>
<problem>
<file>spelling.kt</file>
<line>7</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/spelling.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Typo</problem_class>
<description>Typo: In word 'xyzzy'</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: com.intellij.spellchecker.inspections.SpellCheckingInspection
@@ -0,0 +1,8 @@
fun xyzzy(): String {
// this one is about xyzzy
val s = "xyzzy ${xyzzy()} \n good\tbad\n"
/* xyzzy in a block comment */
/** xyzzy in a documentation comment */
fun bar() {}
return """xyzzy in a triple quoted string"""
}