use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class PythonInspectionsTest method testPyStringExceptionInspection.
public void testPyStringExceptionInspection() {
LocalInspectionTool inspection = new PyStringExceptionInspection();
doTest(getTestName(false), inspection);
}
use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class PythonInspectionsTest method testReturnValueFromInit.
public void testReturnValueFromInit() {
LocalInspectionTool inspection = new PyReturnFromInitInspection();
doTest(getTestName(true), inspection);
}
use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class PythonInspectionsTest method testPyDocstringInspection.
public void testPyDocstringInspection() {
LocalInspectionTool inspection = new PyMissingOrEmptyDocstringInspection();
doTest(getTestName(false), inspection);
}
use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class HtmlMissingClosingTagInspectionTest method highlightTest.
protected void highlightTest(@Language("HTML") String code) {
final LocalInspectionTool inspection = getInspection();
myFixture.enableInspections(inspection);
final HighlightDisplayKey displayKey = HighlightDisplayKey.find(inspection.getShortName());
final Project project = myFixture.getProject();
final InspectionProfileImpl currentProfile = ProjectInspectionProfileManager.getInstance(project).getCurrentProfile();
final HighlightDisplayLevel errorLevel = currentProfile.getErrorLevel(displayKey, null);
if (errorLevel == HighlightDisplayLevel.DO_NOT_SHOW) {
currentProfile.setErrorLevel(displayKey, HighlightDisplayLevel.WARNING, project);
}
myFixture.configureByText(HtmlFileType.INSTANCE, code);
myFixture.testHighlighting();
}
Aggregations