Skip to content

Commit a78a52c

Browse files
Merge pull request #638 from magento/built-in-uct-project-feature
Built in UCT project feature
2 parents 1c2dcb3 + fe89e9b commit a78a52c

File tree

86 files changed

+5563
-60
lines changed

Some content is hidden

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

86 files changed

+5563
-60
lines changed

resources/META-INF/plugin.xml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,24 @@
109109
description="Copies Magento's path of file depending on file type">
110110
<add-to-group group-id="CopyFileReference" anchor="last"/>
111111
</action>
112+
<group id="UctReindexMenu">
113+
<separator/>
114+
<action id="com.magento.idea.magento2uct.actions.ReindexVersionedIndexesAction"
115+
class="com.magento.idea.magento2uct.actions.ReindexVersionedIndexesAction"
116+
text="ReindexVersionedIndexesAction"/>
117+
<add-to-group group-id="ProjectViewPopupMenu" anchor="last"/>
118+
</group>
119+
<group id="UctRunMenu">
120+
<separator/>
121+
<action id="com.magento.idea.magento2uct.actions.ConfigureUctAction"
122+
class="com.magento.idea.magento2uct.actions.ConfigureUctAction"
123+
text="Configure The Upgrade Compatibility Tool"/>
124+
<action id="com.magento.idea.magento2uct.actions.RunUpgradeCompatibilityToolAction"
125+
class="com.magento.idea.magento2uct.actions.RunUpgradeCompatibilityToolAction"
126+
text="Run The Upgrade Compatibility Tool Action"/>
127+
<separator/>
128+
<add-to-group group-id="ToolsMenu" anchor="last"/>
129+
</group>
112130
</actions>
113131

114132
<extensions defaultExtensionNs="com.intellij">
@@ -237,6 +255,93 @@
237255
enabledByDefault="true" level="WARNING"
238256
implementationClass="com.magento.idea.magento2plugin.inspections.xml.PluginAttributeTypeInspection"/>
239257

258+
<!-- UCT inspection -->
259+
<localInspection language="PHP" groupPath="UCT"
260+
shortName="ExtendingDeprecatedClass"
261+
bundle="uct.bundle.inspection" key="inspection.displayName.ExtendingDeprecatedClass"
262+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
263+
enabledByDefault="false"
264+
level="WARNING"
265+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.ExtendingDeprecatedClass"/>
266+
<localInspection language="PHP" groupPath="UCT"
267+
shortName="ImportingDeprecatedClass"
268+
bundle="uct.bundle.inspection" key="inspection.displayName.ImportingDeprecatedClass"
269+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
270+
enabledByDefault="false"
271+
level="WARNING"
272+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.ImportingDeprecatedClass"/>
273+
<localInspection language="PHP" groupPath="UCT"
274+
shortName="ImportingDeprecatedInterface"
275+
bundle="uct.bundle.inspection" key="inspection.displayName.ImportingDeprecatedInterface"
276+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
277+
enabledByDefault="false"
278+
level="WARNING"
279+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.ImportingDeprecatedInterface"/>
280+
<localInspection language="PHP" groupPath="UCT"
281+
shortName="UsingDeprecatedClass"
282+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedClass"
283+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
284+
enabledByDefault="false"
285+
level="WARNING"
286+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedClass"/>
287+
<localInspection language="PHP" groupPath="UCT"
288+
shortName="UsingDeprecatedInterface"
289+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedInterface"
290+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
291+
enabledByDefault="false"
292+
level="WARNING"
293+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedInterface"/>
294+
<localInspection language="PHP" groupPath="UCT"
295+
shortName="UsingDeprecatedConstant"
296+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedConstant"
297+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
298+
enabledByDefault="false"
299+
level="WARNING"
300+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedConstant"/>
301+
<localInspection language="PHP" groupPath="UCT"
302+
shortName="OverridingDeprecatedConstant"
303+
bundle="uct.bundle.inspection" key="inspection.displayName.OverridingDeprecatedConstant"
304+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
305+
enabledByDefault="false"
306+
level="WARNING"
307+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.OverridingDeprecatedConstant"/>
308+
<localInspection language="PHP" groupPath="UCT"
309+
shortName="OverridingDeprecatedProperty"
310+
bundle="uct.bundle.inspection" key="inspection.displayName.OverridingDeprecatedProperty"
311+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
312+
enabledByDefault="false"
313+
level="WARNING"
314+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.OverridingDeprecatedProperty"/>
315+
<localInspection language="PHP" groupPath="UCT"
316+
shortName="InheritedDeprecatedInterface"
317+
bundle="uct.bundle.inspection" key="inspection.displayName.InheritedDeprecatedInterface"
318+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
319+
enabledByDefault="false"
320+
level="WARNING"
321+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.InheritedDeprecatedInterface"/>
322+
<localInspection language="PHP" groupPath="UCT"
323+
shortName="ImplementedDeprecatedInterface"
324+
bundle="uct.bundle.inspection" key="inspection.displayName.ImplementedDeprecatedInterface"
325+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
326+
enabledByDefault="false"
327+
level="WARNING"
328+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.ImplementedDeprecatedInterface"/>
329+
<localInspection language="PHP" groupPath="UCT"
330+
shortName="CallingDeprecatedMethod"
331+
bundle="uct.bundle.inspection" key="inspection.displayName.CallingDeprecatedMethod"
332+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
333+
enabledByDefault="false"
334+
level="WARNING"
335+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.CallingDeprecatedMethod"/>
336+
<localInspection language="PHP" groupPath="UCT"
337+
shortName="UsingDeprecatedProperty"
338+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedProperty"
339+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
340+
enabledByDefault="false"
341+
level="WARNING"
342+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedProperty"/>
343+
<!-- \UCT inspection -->
344+
240345
<internalFileTemplate name="Magento Composer JSON"/>
241346
<internalFileTemplate name="Magento Registration PHP"/>
242347
<internalFileTemplate name="Magento Module XML"/>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1439] Call Adobe Commerce @deprecated method: The deprecated method will be removed in upcoming versions. Consider relying on methods declared in API interfaces instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1131] Extending from Adobe Commerce @deprecated class: The extended class will be removed in upcoming versions. Inheritance is not recommended way of extending Adobe Commerce functionality. Update code to use a class marked as @api.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1338] Implemented Adobe Commerce @deprecated interface: The deprecated interface will be removed in upcoming versions. Consider removing the interface inheritance, using an interface marked as @api or an interface introduced within your implementation instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1132] Importing Adobe Commerce @deprecated class: The extended class will be removed in upcoming versions. Consider using Adobe Commerce class marked as @api instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1332] Imported Adobe Commerce @deprecated interface: The deprecated interface will be removed in upcoming versions. Consider using an interface or class marked as @api instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1337] Inherited from Adobe Commerce @deprecated interface: The deprecated interface will be removed in upcoming versions. Consider removing the interface inheritance, using an interface marked as @api or an interface introduced within your implementation instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1235] Overriding Adobe Commerce @deprecated constant: The deprecated constant will be removed in upcoming versions. Consider using a constant marked as @api or a private constant within your implementation instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1535] Overriding Adobe Commerce @deprecated property: The deprecated property will be removed in upcoming versions. Consider relying on methods declared in API interfaces or using a private property within your implementation instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<html>
2+
<body>
3+
<p>[1134] Using Adobe Commerce @deprecated class: The extended class will be removed in upcoming versions. Consider using Adobe Commerce class marked as @api instead.</p>
4+
<!-- tooltip end -->
5+
</body>
6+
</html>

0 commit comments

Comments
 (0)