mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-03 14:47:22 +00:00
warning-level for GPL-compatible licenses
This commit is contained in:
parent
91c9d8234d
commit
eed155ed6f
@ -216,7 +216,7 @@ class JedcheckerRulesGpl extends JEDcheckerRule
|
|||||||
if (preg_match($this->regexCompatLicenses, $content, $match, PREG_OFFSET_CAPTURE))
|
if (preg_match($this->regexCompatLicenses, $content, $match, PREG_OFFSET_CAPTURE))
|
||||||
{
|
{
|
||||||
$lineno = substr_count($content, "\n", 0, $match[0][1]) + 1;
|
$lineno = substr_count($content, "\n", 0, $match[0][1]) + 1;
|
||||||
$this->report->addInfo(
|
$this->report->addWarning(
|
||||||
$file,
|
$file,
|
||||||
JText::_('COM_JEDCHECKER_GPL_COMPATIBLE_LICENSE_WAS_FOUND'),
|
JText::_('COM_JEDCHECKER_GPL_COMPATIBLE_LICENSE_WAS_FOUND'),
|
||||||
$lineno,
|
$lineno,
|
||||||
|
Loading…
Reference in New Issue
Block a user