Skip to content

Commit 3304780

Browse files
author
Vitaliy Boyko
committed
Use error level for inspection instead of warning
1 parent dd5a786 commit 3304780

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
displayName="Inspection for the Module declaration in the `registration.php` file"
133133
groupName="Magento 2"
134134
enabledByDefault="true"
135-
level="WARNING"
135+
level="ERROR"
136136
implementationClass="com.magento.idea.magento2plugin.inspections.php.ModuleDeclarationInRegistrationPhpInspection"/>
137137

138138
<localInspection language="XML" groupPath="XML"
@@ -162,7 +162,7 @@
162162
shortName="ModuleDeclarationInModuleXmlInspection"
163163
displayName="Inspection for the Module declaration in the `etc/module.xml` file"
164164
groupName="Magento 2"
165-
enabledByDefault="true" level="WARNING"
165+
enabledByDefault="true" level="ERROR"
166166
implementationClass="com.magento.idea.magento2plugin.inspections.xml.ModuleDeclarationInModuleXmlInspection"/>
167167

168168
<libraryRoot id=".phpstorm.meta.php" path=".phpstorm.meta.php/" runtime="false"/>

src/com/magento/idea/magento2plugin/inspections/php/ModuleDeclarationInRegistrationPhpInspection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void visitPhpStringLiteralExpression(final StringLiteralExpression expres
5353
actualName,
5454
expectedName
5555
),
56-
ProblemHighlightType.WARNING,
56+
ProblemHighlightType.ERROR,
5757
new PhpModuleNameQuickFix(expectedName)
5858
);
5959
}

src/com/magento/idea/magento2plugin/inspections/xml/ModuleDeclarationInModuleXmlInspection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void visitXmlAttributeValue(final XmlAttributeValue value) {
6969
actualName,
7070
expectedName
7171
),
72-
ProblemHighlightType.WARNING,
72+
ProblemHighlightType.ERROR,
7373
new XmlModuleNameQuickFix(expectedName)
7474
);
7575
}

0 commit comments

Comments
 (0)