mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[java-inspections] Missorted modifiers: enable in info-mode by default
GitOrigin-RevId: 9db406bbf01e6283bbb8a613d43bb222539f2c3b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2754cb6d75
commit
a7e032a949
@@ -2273,8 +2273,9 @@
|
||||
groupKey="group.names.code.style.issues" enabledByDefault="true" level="WARNING"
|
||||
implementationClass="com.siyeh.ig.style.EscapedSpaceInspection" cleanupTool="true"/>
|
||||
<localInspection groupPath="Java" language="JAVA" shortName="MissortedModifiers" bundle="messages.InspectionGadgetsBundle" key="missorted.modifiers.display.name"
|
||||
groupBundle="messages.InspectionsBundle" groupKey="group.names.code.style.issues" enabledByDefault="false" cleanupTool="true"
|
||||
level="WARNING" implementationClass="com.siyeh.ig.style.MissortedModifiersInspection"/>
|
||||
groupBundle="messages.InspectionsBundle" groupKey="group.names.code.style.issues"
|
||||
enabledByDefault="true" level="INFORMATION" cleanupTool="true"
|
||||
implementationClass="com.siyeh.ig.style.MissortedModifiersInspection"/>
|
||||
<localInspection groupPath="Java" language="JAVA" suppressId="MultipleVariablesInDeclaration" shortName="MultipleVariablesInDeclaration" bundle="messages.InspectionGadgetsBundle"
|
||||
key="multiple.declaration.display.name" groupBundle="messages.InspectionsBundle"
|
||||
groupKey="group.names.code.style.issues" enabledByDefault="true" level="INFORMATION"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.siyeh.ig.style;
|
||||
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
@@ -23,16 +23,10 @@ public class MissortedModifiersInspectionTest extends LightJavaInspectionTestCas
|
||||
}
|
||||
|
||||
public void testIgnoreAnnotations() {
|
||||
final MissortedModifiersInspection inspection = new MissortedModifiersInspection();
|
||||
inspection.m_requireAnnotationsFirst = false;
|
||||
myFixture.enableInspections(inspection);
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testTypeUseWithType() {
|
||||
final MissortedModifiersInspection inspection = new MissortedModifiersInspection();
|
||||
inspection.typeUseWithType = true;
|
||||
myFixture.enableInspections(inspection);
|
||||
doTestQuickFix();
|
||||
}
|
||||
|
||||
@@ -64,6 +58,13 @@ public class MissortedModifiersInspectionTest extends LightJavaInspectionTestCas
|
||||
@Nullable
|
||||
@Override
|
||||
protected InspectionProfileEntry getInspection() {
|
||||
return new MissortedModifiersInspection();
|
||||
MissortedModifiersInspection inspection = new MissortedModifiersInspection();
|
||||
if (getTestName(false).contains("TypeUseWithType")) {
|
||||
inspection.typeUseWithType = true;
|
||||
}
|
||||
else if (getTestName(false).contains("IgnoreAnnotations")) {
|
||||
inspection.m_requireAnnotationsFirst = false;
|
||||
}
|
||||
return inspection;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user