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:
+5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user