joomla-extensions / jedchecker

Joomla extension to check components, modules or plugins for possible problems for submission to the JED -> Translations: https://joomla.crowdin.com/joomla-official-extensions
38 stars 28 forks source link

Resolve aliases before checking framework rules #240

Closed dryabov closed 6 months ago

dryabov commented 9 months ago

It seems to me that many will adapt extensions for Joomla 5 using aliases, for example:

use Joomla\CMS\Factory as JFactory;

To prevent JEDChecker from complaining about using the JFactory class in such cases, I added a detection and substitution of all aliases in the source code before checking.