33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-31 21:51:46 +00:00

add support of api files in component (supported since J!4.0)

This commit is contained in:
Denis Ryabov 2021-06-14 22:17:54 +03:00
parent 7d0e47cacc
commit e582e2b358

View File

@ -205,6 +205,17 @@ class JedcheckerRulesXMLFiles extends JEDcheckerRule
$this->checkFolders($node->folder, $dir);
}
// Check: api files[folder] (filename|file|folder)*
if (isset($xml->api->files))
{
$node = $xml->api->files;
$dir = $this->getSourceFolder($node);
$this->checkFiles($node->filename, $dir);
$this->checkFiles($node->file, $dir);
$this->checkFolders($node->folder, $dir);
}
// Check file: scriptfile
if (isset($xml->scriptfile))
{