mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
merge misspelled (hashCode, toString, setUp, tearDown, compareTo) inspections
This commit is contained in:
+2
-2
@@ -15,12 +15,12 @@
|
||||
*/
|
||||
package com.intellij.codeInspection.deadCode;
|
||||
|
||||
import com.intellij.codeInspection.ex.InspectionElementsMerger;
|
||||
import com.intellij.codeInspection.ex.InspectionElementsMergerBase;
|
||||
import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
||||
import com.intellij.openapi.util.WriteExternalException;
|
||||
import org.jdom.Element;
|
||||
|
||||
public class UnusedDeclarationInspectionMerger extends InspectionElementsMerger {
|
||||
public class UnusedDeclarationInspectionMerger extends InspectionElementsMergerBase {
|
||||
private static final String UNUSED_SYMBOL = "UNUSED_SYMBOL";
|
||||
private static final String UNUSED_DECLARATION = "UnusedDeclaration";
|
||||
|
||||
|
||||
@@ -360,6 +360,22 @@ public class InspectionProfileTest extends LightIdeaTestCase {
|
||||
"</profile>");
|
||||
}
|
||||
|
||||
public void testMergedMisspelledInspections() throws Exception {
|
||||
checkMergedNoChanges("<profile version=\"1.0\">\n" +
|
||||
" <option name=\"myName\" value=\"" + PROFILE + "\" />\n" +
|
||||
" <inspection_tool class=\"MethodNamesDifferOnlyByCase\" enabled=\"true\" level=\"WARNING\" enabled_by_default=\"false\">\n" +
|
||||
" <option name=\"ignoreIfMethodIsOverride\" value=\"false\" />\n" +
|
||||
" </inspection_tool>\n" +
|
||||
"</profile>");
|
||||
checkMergedNoChanges("<profile version=\"1.0\">\n" +
|
||||
" <option name=\"myName\" value=\"" + PROFILE + "\" />\n" +
|
||||
" <inspection_tool class=\"MethodNamesDifferOnlyByCase\" enabled=\"true\" level=\"WARNING\" enabled_by_default=\"false\">\n" +
|
||||
" <option name=\"ignoreIfMethodIsOverride\" value=\"false\" />\n" +
|
||||
" </inspection_tool>\n" +
|
||||
" <inspection_tool class=\"MisspelledSetUp\" enabled=\"true\" level=\"WARNING\" enabled_by_default=\"false\" />\n" +
|
||||
"</profile>");
|
||||
}
|
||||
|
||||
public void testDisabledUnusedDeclarationWithChanges() throws Exception {
|
||||
checkMergedNoChanges("<profile version=\"1.0\">\n" +
|
||||
" <option name=\"myName\" value=\"" + PROFILE + "\" />\n" +
|
||||
|
||||
Reference in New Issue
Block a user