RemoveCurlyBracesFromTemplateInspection: add heuristic to change severity

Change severity to INFORMATION if a variable hasn't whitespace around & add an option to return the old behavior
 #KT-31717 Fixed
This commit is contained in:
Dmitry Gridin
2019-07-02 19:28:39 +07:00
parent e4d0c2cb0e
commit fda5692fc6
18 changed files with 51 additions and 1 deletions
@@ -7884,6 +7884,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
public void testUnnecessaryBrackets7() throws Exception {
runTest("idea/testData/inspectionsLocal/removeCurlyBracesFromTemplate/unnecessaryBrackets7.kt");
}
@TestMetadata("unnecessaryBrackets8.kt")
public void testUnnecessaryBrackets8() throws Exception {
runTest("idea/testData/inspectionsLocal/removeCurlyBracesFromTemplate/unnecessaryBrackets8.kt");
}
}
@TestMetadata("idea/testData/inspectionsLocal/removeEmptyParenthesesFromAnnotationEntry")