IDEA-244325 [devkit] Convert InspectionDescriptionNotFoundInspection to UAST

GitOrigin-RevId: 9e8feeeb5cbd53c37bd43b29c5eaeb3de87329d7
This commit is contained in:
Yann Cébron
2020-06-23 17:34:01 +02:00
committed by intellij-monorepo-bot
parent ee78c14d55
commit bbedc3df3b
18 changed files with 238 additions and 183 deletions

View File

@@ -1,8 +1,8 @@
import com.intellij.codeInspection.InspectionProfileEntry;
public class MyInspectionCustomShortName extends InspectionProfileEntry {
public class <warning descr="Inspection does not have a description [getShortName()]">MyInspectionCustomShortName</warning> extends InspectionProfileEntry {
public String getShortName() {
return <warning descr="Inspection does not have a description">"NOT_EXISTING_CUSTOM_SHORT_NAME"</warning>;
return "NOT_EXISTING_CUSTOM_SHORT_NAME";
}
}

View File

@@ -7,4 +7,4 @@ class ALocalInspectionTool extends LocalInspectionTool {
return com.intellij.codeInspection.InspectionProfileEntry.getShortName(name);
}
}
public class <warning descr="Inspection does not have a description">MyWithDescriptionAndShortNameInBaseInspection</warning> extends ALocalInspectionTool {}
public class <warning descr="Inspection does not have a description [getShortName()]">MyWithDescriptionAndShortNameInBaseInspection</warning> extends ALocalInspectionTool {}