31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-09-28 21:19:07 +00:00

remove extension type check (moving to XMLINFO rules)

This commit is contained in:
Denis Ryabov 2021-06-27 00:28:48 +03:00
parent 7d0e47cacc
commit 4b89e2fca6

View File

@ -92,15 +92,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
'module', 'package', 'plugin', 'template'
);
/**
* List of JED extension types
*
* @var string[]
*/
protected $jedTypes = array(
'component', 'module', 'package', 'plugin'
);
/**
* Initiates the search and check
*
@ -153,12 +144,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
return true;
}
// JED allows components, modules, plugins, and packages (as a container) only
if (!in_array($type, $this->jedTypes, true))
{
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_MANIFEST_TYPE_NOT_ACCEPTED', $type));
}
// Load DTD-like data for this extension type
$jsonFilename = __DIR__ . '/xmlmanifest/dtd_' . $type . '.json';