Skip to content

Commit 83c9bd0

Browse files
author
Vitaliy Boyko
committed
Merge branch '4.0.0-develop' of github.com:magento/magento2-phpstorm-plugin into mainline-eav-attr-code-genearators
2 parents b6569ba + dc5041f commit 83c9bd0

File tree

102 files changed

+2436
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+2436
-87
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
66

77
## 4.0.0
88

9+
## 3.2.1
10+
11+
### Fixed
12+
13+
- Directory validator
14+
- Entity data mapper file template
15+
916
## 3.2.0
1017

1118
### Added

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@
4343

4444
1. Check out this repository
4545
1. Open a folder with the project in the IntelliJ Ultimate using the `open` action button.
46-
1. Make sure that you on the latest develop branch (e.g `1.0.0-develop`)
47-
1. Right-click on the `build.gradle` file, choose "Import Gradle project" (you need to have Gradle plugin installed)
46+
1. Make sure that you on the latest develop branch (e.g `4.0.0-develop`)
47+
1. Right-click on the `build.gradle` file, choose "Import Gradle project" (if this is not exist look for "Build module '<root folder name>'") (you need to have Gradle plugin installed)
48+
1. Check if the right SDK version is used for the project.
49+
- Current Java version for the project is **java 11**, so you should additionally download **SDK 11** and choose it in the module settings: `Right click by the project root > Open Module Settings > Project Settings > Project > Project SDK`
50+
- Check if right SDK version is used for the Gradle plugin: `Intellij IDEA > Preferences... > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM` and choose your JDK.
4851
1. When the Gradle sections appeared in the right bar, navigate there and right-click `magento-2-php-storm-plugin > Tasks -> Intellij -> runIde`
4952
1. Click `Run "magento-2-php-storm-plugin"` to run the plugin. You should see a new instance of IntelliJ launched with the plugin installed. Make sure the plugin is enabled in IntelliJ settings and indexing is finished. Plugin features should be accessible at this point.
5053

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
plugins {
7-
id 'org.jetbrains.intellij' version '0.6.5'
7+
id 'org.jetbrains.intellij' version '0.7.2'
88
id 'checkstyle'
99
id 'pmd'
1010
id 'org.jetbrains.changelog' version '0.6.2'

gradle-tasks/checkstyle/checkstyle.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,8 @@
330330
</module>
331331
</module>
332332
<module name="SuppressWarningsFilter"/>
333+
<module name="RegexpHeader">
334+
<property name="header" value="^\/\*\n \* Copyright © Magento, Inc."/>
335+
<property name="fileExtensions" value="java"/>
336+
</module>
333337
</module>

gradle-tasks/staticChecks.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ checkstyle {
1919
pmd {
2020
toolVersion = "6.21.0"
2121
consoleOutput = true
22-
rulePriority = 5
2322
ruleSets = [
2423
rootProject.file("gradle-tasks/pmd/ruleset.xml")
2524
]

resources/META-INF/plugin.xml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@
103103
<action id="OverrideInTheme.Menu" class="com.magento.idea.magento2plugin.actions.generation.OverrideInThemeAction">
104104
<add-to-group group-id="ProjectViewPopupMenu"/>
105105
</action>
106+
<action id="MagentoCreateAWebApiDeclaration.Menu" class="com.magento.idea.magento2plugin.actions.generation.NewWebApiDeclarationAction">
107+
<add-to-group group-id="EditorPopupMenu"/>
108+
</action>
106109

107110
<action id="CopyMagentoPath"
108111
class="com.magento.idea.magento2plugin.actions.CopyMagentoPath"
@@ -158,57 +161,72 @@
158161
<directoryProjectConfigurator implementation="com.magento.idea.magento2plugin.project.ProjectDetector"/>
159162

160163
<localInspection language="PHP" groupPath="PHP"
161-
shortName="PluginInspection" displayName="Inspection for the Plugin declaration"
162-
groupName="Magento 2"
164+
shortName="PluginInspection"
165+
bundle="magento2.inspection" key="inspection.displayName.PluginInspection"
166+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
163167
enabledByDefault="true"
164168
level="ERROR"
165169
implementationClass="com.magento.idea.magento2plugin.inspections.php.PluginInspection"/>
166170

167171
<localInspection language="PHP" groupPath="PHP"
168172
shortName="ModuleDeclarationInRegistrationPhpInspection"
169-
displayName="Inspection for the Module declaration in the `registration.php` file"
170-
groupName="Magento 2"
173+
bundle="magento2.inspection" key="inspection.displayName.ModuleDeclarationInRegistrationPhpInspection"
174+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
171175
enabledByDefault="true"
172176
level="ERROR"
173177
implementationClass="com.magento.idea.magento2plugin.inspections.php.ModuleDeclarationInRegistrationPhpInspection"/>
174178

175179
<localInspection language="XML" groupPath="XML"
176180
shortName="ObserverDeclarationInspection"
177-
displayName="Duplicated Observer Usage in events XML"
178-
groupName="Magento 2"
181+
bundle="magento2.inspection" key="inspection.displayName.ObserverDeclarationInspection"
182+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
179183
enabledByDefault="true"
180184
level="WARNING"
181185
implementationClass="com.magento.idea.magento2plugin.inspections.xml.ObserverDeclarationInspection"/>
182186

183187
<localInspection language="XML" groupPath="XML"
184188
shortName="PluginDeclarationInspection"
185-
displayName="Duplicated Plugin Usage in di XML"
186-
groupName="Magento 2"
189+
bundle="magento2.inspection" key="inspection.displayName.PluginDeclarationInspection"
190+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
187191
enabledByDefault="true"
188192
level="WARNING"
189193
implementationClass="com.magento.idea.magento2plugin.inspections.xml.PluginDeclarationInspection"/>
190194

191195
<localInspection language="XML" groupPath="XML"
192196
shortName="CacheableFalseInDefaultLayoutInspection"
193-
displayName="Inspection for disabled cache site-wide"
194-
groupName="Magento 2"
197+
bundle="magento2.inspection" key="inspection.displayName.CacheableFalseInDefaultLayoutInspection"
198+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
195199
enabledByDefault="true" level="WARNING"
196200
implementationClass="com.magento.idea.magento2plugin.inspections.xml.CacheableFalseInDefaultLayoutInspection"/>
197201

198202
<localInspection language="XML" groupPath="XML"
199203
shortName="ModuleDeclarationInModuleXmlInspection"
200-
displayName="Inspection for the Module declaration in the `etc/module.xml` file"
201-
groupName="Magento 2"
204+
bundle="magento2.inspection" key="inspection.displayName.ModuleDeclarationInModuleXmlInspection"
205+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
202206
enabledByDefault="true" level="ERROR"
203207
implementationClass="com.magento.idea.magento2plugin.inspections.xml.ModuleDeclarationInModuleXmlInspection"/>
204208

205209
<localInspection language="XML" groupPath="XML"
206210
shortName="AclResourceXmlInspection"
207-
displayName="Inspection for the Title XML required attribute in the `etc/acl.xml` file"
208-
groupName="Magento 2"
211+
bundle="magento2.inspection" key="inspection.displayName.AclResourceXmlInspection"
212+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
209213
enabledByDefault="true" level="ERROR"
210214
implementationClass="com.magento.idea.magento2plugin.inspections.xml.AclResourceXmlInspection"/>
211215

216+
<localInspection language="XML" groupPath="XML"
217+
shortName="WebApiServiceInspection"
218+
bundle="magento2.inspection" key="inspection.displayName.WebApiServiceInspection"
219+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
220+
enabledByDefault="true" level="WARNING"
221+
implementationClass="com.magento.idea.magento2plugin.inspections.xml.WebApiServiceInspection"/>
222+
223+
<localInspection language="XML" groupPath="XML"
224+
shortName="InvalidDiTypeInspection"
225+
bundle="magento2.inspection" key="inspection.displayName.InvalidDiTypeInspection"
226+
groupBundle="magento2.inspection" groupKey="inspection.group.name"
227+
enabledByDefault="true" level="WARNING"
228+
implementationClass="com.magento.idea.magento2plugin.inspections.xml.InvalidDependencyInjectionTypeInspection"/>
229+
212230
<internalFileTemplate name="Magento Composer JSON"/>
213231
<internalFileTemplate name="Magento Registration PHP"/>
214232
<internalFileTemplate name="Magento Module XML"/>
@@ -254,6 +272,8 @@
254272
<defaultLiveTemplates file="/liveTemplates/MagentoPWA.xml"/>
255273

256274
<postStartupActivity implementation="com.magento.idea.magento2plugin.project.startup.CheckIfMagentoPathIsValidActivity"/>
275+
276+
<errorHandler implementation="com.magento.idea.magento2plugin.project.diagnostic.DefaultErrorReportSubmitter"/>
257277
</extensions>
258278

259279
<extensions defaultExtensionNs="com.jetbrains.php">
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
**Describe the bug** (*)
2+
3+
${BUG_DESCRIPTION}
4+
5+
```
6+
${STACK_TRACE}
7+
```
8+
9+
**To Reproduce** (*)
10+
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior** (*)
18+
19+
A clear and concise description of what you expected to happen.
20+
21+
**Screenshots**
22+
23+
If applicable, add screenshots to help explain your problem.
24+
25+
**Please complete the following information:** (*)
26+
27+
- OS: [e.g. MacOS or Ubuntu Linux 20.04]
28+
- PhpStorm/Intellij version: [e.g. 2019.3.3]
29+
- Plugin Version: [e.g. 1.0.0]
30+
31+
**Additional context**
32+
33+
Add any other context about the problem here.

resources/fileTemplates/code/GitHub New Bug Issue Body Template.txt.html

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<route url="/V1/${ROUTE}" method="${METHOD}">
2+
<service class="${SERVICE}" method="${SERVICE_METHOD}"/>
3+
<resources>
4+
<resource ref="${RESOURCE}"/>
5+
</resources>
6+
</route>

resources/fileTemplates/code/Magento Web Api Declaration.xml.html

Whitespace-only changes.

0 commit comments

Comments
 (0)