-
Notifications
You must be signed in to change notification settings - Fork 102
Inspections
Inspection highlights the following cases:
- Plugin declared for a final class
- Plugin declared for a final method
- Plugin declared for a constructor
- Plugin declared for a not public method
- Plugin declared for a static method
- Incompatible parameter
- Redundant parameter
This inspection highlights possible accidental plugin duplication. A Plugin name must be unique. In case if overriding is wanted, the best practice is to disable the original plugin and give a unique name to the current plugin.
Inspection for observer declaration records, similar to plugin inspection.
If a class is configured in schema.GraphQLs
as a resolver, it should implement one of the resolver interfaces.
This inspection highlights the cacheable
attribute which is set to be false in default.xml as that can make the whole site uncacheable.
Inspection checks whether the name of the module declared in app/code
reflect the folder structure.
Inspection checks whether resolvers declared in schema implement resolver interfaces.
Inspection check ACL resource with a unique identifier to have a title
attribute.
The Type
tag inspections (in the di.xml files) detect empty values or invalid values where a Type values (class, interface, virtual type) are expected.
It also supports recursive inspection for xsi:type="array"
arguments.
Added inspection to check if the type attribute value in the virtual type tag of the di.xml
is valid
For an empty value:
For an invalid value:
The maintenance of this project is possible thanks to the Armed Forces of Ukraine.