Need reformat inspection

This commit is contained in:
Nikolay Krasko
2017-08-11 12:31:45 +03:00
parent ba19931aef
commit d38fd0fdf8
9 changed files with 250 additions and 1 deletions
@@ -0,0 +1,42 @@
<problems>
<problem>
<file>reformat.kt</file>
<line>4</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/reformat.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">File is not formatted according to project settings</problem_class>
<description>File is not properly formatted</description>
</problem>
<problem>
<file>reformat.kt</file>
<line>4</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/reformat.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">File is not formatted according to project settings</problem_class>
<description>File is not properly formatted</description>
</problem>
<problem>
<file>reformat.kt</file>
<line>4</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/reformat.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">File is not formatted according to project settings</problem_class>
<description>File is not properly formatted</description>
</problem>
<problem>
<file>reformat.kt</file>
<line>5</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/reformat.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">File is not formatted according to project settings</problem_class>
<description>File is not properly formatted</description>
</problem>
<problem>
<file>reformat.kt</file>
<line>10</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/reformat.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">File is not formatted according to project settings</problem_class>
<description>File is not properly formatted</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.ReformatInspection
+12
View File
@@ -0,0 +1,12 @@
package format.inspection
fun test() {
if(true){}
}
fun other() {
val test = 12
<caret>
}