Skip to content

Commit 46afac2

Browse files
author
Vitaliy Boyko
committed
Merge branch '1.0.1-develop' of https://github.com/magento/magento2-phpstorm-plugin into 252-fixed-issue-with-new-module-group-prepare-release
2 parents 2681387 + 2bdc85c commit 46afac2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

resources/META-INF/plugin.xml

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

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

169169
<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
}

src/com/magento/idea/magento2plugin/util/magento/IsFileInEditableModuleUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public final class IsFileInEditableModuleUtil {
1515
private IsFileInEditableModuleUtil() {}
1616

1717
/**
18-
* Module is considered editable if it is declared within `MAGENTO_ROOT/app/code` directory
18+
* Module is considered editable if it is declared within `MAGENTO_ROOT/app/code` directory.
1919
*
2020
* @param file PsiFile
2121
* @return boolean

0 commit comments

Comments
 (0)