Skip to content

Commit b480702

Browse files
The built-in UCT inspections development (deprecation inspections)
1 parent 68d498f commit b480702

26 files changed

+1033
-406
lines changed

resources/META-INF/plugin.xml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,69 @@
273273
enabledByDefault="true"
274274
level="WARNING"
275275
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.ImportingDeprecatedInterface"/>
276+
<localInspection language="PHP" groupPath="UCT"
277+
shortName="UsingDeprecatedClass"
278+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedClass"
279+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
280+
enabledByDefault="true"
281+
level="WARNING"
282+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedClass"/>
283+
<localInspection language="PHP" groupPath="UCT"
284+
shortName="UsingDeprecatedInterface"
285+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedInterface"
286+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
287+
enabledByDefault="true"
288+
level="WARNING"
289+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedInterface"/>
290+
<localInspection language="PHP" groupPath="UCT"
291+
shortName="UsingDeprecatedConstant"
292+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedConstant"
293+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
294+
enabledByDefault="true"
295+
level="WARNING"
296+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedConstant"/>
297+
<localInspection language="PHP" groupPath="UCT"
298+
shortName="OverridingDeprecatedConstant"
299+
bundle="uct.bundle.inspection" key="inspection.displayName.OverridingDeprecatedConstant"
300+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
301+
enabledByDefault="true"
302+
level="WARNING"
303+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.OverridingDeprecatedConstant"/>
304+
<localInspection language="PHP" groupPath="UCT"
305+
shortName="OverridingDeprecatedProperty"
306+
bundle="uct.bundle.inspection" key="inspection.displayName.OverridingDeprecatedProperty"
307+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
308+
enabledByDefault="true"
309+
level="WARNING"
310+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.OverridingDeprecatedProperty"/>
311+
<localInspection language="PHP" groupPath="UCT"
312+
shortName="InheritedDeprecatedInterface"
313+
bundle="uct.bundle.inspection" key="inspection.displayName.InheritedDeprecatedInterface"
314+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
315+
enabledByDefault="true"
316+
level="WARNING"
317+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.InheritedDeprecatedInterface"/>
318+
<localInspection language="PHP" groupPath="UCT"
319+
shortName="ImplementedDeprecatedInterface"
320+
bundle="uct.bundle.inspection" key="inspection.displayName.ImplementedDeprecatedInterface"
321+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
322+
enabledByDefault="true"
323+
level="WARNING"
324+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.ImplementedDeprecatedInterface"/>
325+
<localInspection language="PHP" groupPath="UCT"
326+
shortName="CallingDeprecatedMethod"
327+
bundle="uct.bundle.inspection" key="inspection.displayName.CallingDeprecatedMethod"
328+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
329+
enabledByDefault="true"
330+
level="WARNING"
331+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.CallingDeprecatedMethod"/>
332+
<localInspection language="PHP" groupPath="UCT"
333+
shortName="UsingDeprecatedProperty"
334+
bundle="uct.bundle.inspection" key="inspection.displayName.UsingDeprecatedProperty"
335+
groupBundle="uct.bundle.inspection" groupKey="inspection.deprecation.group.name"
336+
enabledByDefault="true"
337+
level="WARNING"
338+
implementationClass="com.magento.idea.magento2uct.inspections.php.deprecation.UsingDeprecatedProperty"/>
276339
<!-- \UCT inspection -->
277340

278341
<internalFileTemplate name="Magento Composer JSON"/>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html>
2+
<body>
3+
<p>[1234] Using 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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html>
2+
<body>
3+
<p>[1334] Used 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+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html>
2+
<body>
3+
<p>[1534] Using Adobe Commerce @deprecated property: The deprecated method will be removed in upcoming versions. Consider relying on methods declared in API interfaces instead.</p>
4+
<!-- tooltip end -->
5+
<p>Text after this comment will only be shown in the settings of the inspection.</p>
6+
</body>
7+
</html>

0 commit comments

Comments
 (0)