use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class SpellCheckingEditorCustomization method init.
@SuppressWarnings({ "unchecked" })
private static boolean init() {
// It's assumed that default spell checking inspection settings are just fine for processing all types of data.
// Please perform corresponding settings tuning if that assumption is broken at future.
Class<LocalInspectionTool>[] inspectionClasses = (Class<LocalInspectionTool>[]) new Class<?>[] { SpellCheckingInspection.class };
for (Class<LocalInspectionTool> inspectionClass : inspectionClasses) {
try {
LocalInspectionTool tool = inspectionClass.newInstance();
SPELL_CHECK_TOOLS.put(tool.getShortName(), new LocalInspectionToolWrapper(tool));
} catch (Throwable e) {
return false;
}
}
return true;
}
use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class PythonInspectionsTest method testPyNestedDecoratorsInspection.
public void testPyNestedDecoratorsInspection() {
LocalInspectionTool inspection = new PyNestedDecoratorsInspection();
doTest(getTestName(false), inspection);
}
use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class PythonInspectionsTest method testPyTrailingSemicolonInspection.
public void testPyTrailingSemicolonInspection() {
LocalInspectionTool inspection = new PyTrailingSemicolonInspection();
doTest(getTestName(false), inspection);
}
use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class PythonInspectionsTest method testPyMethodFirstArgAssignmentInspection.
public void testPyMethodFirstArgAssignmentInspection() {
LocalInspectionTool inspection = new PyMethodFirstArgAssignmentInspection();
doTest(getTestName(false), inspection);
}
use of com.intellij.codeInspection.LocalInspectionTool in project intellij-community by JetBrains.
the class PythonInspectionsTest method testPyComparisonWithNoneInspection.
public void testPyComparisonWithNoneInspection() {
LocalInspectionTool inspection = new PyComparisonWithNoneInspection();
doTest(getTestName(false), inspection);
}
Aggregations