You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->output->addMessage(Output::FATAL, 'The defined version is in the wrong format.', $originFile);
602
+
$this->output->addMessage(Output::ERROR, 'The defined version is in the wrong format.', $originFile);
603
603
}
604
604
// Homepage should be at least an empty string
605
605
if (!preg_match('/(?:https?:\/\/|www\.)[^\s]+|(?:\b[a-z0-9-]+\.(?:com|net|org|info|io|co|biz|me|xyz|ai|app|dev|tech|tv|us|uk|de|fr|ru|jp|cn|in)\b)/i', $jsonContent['homepage']) && $jsonContent['homepage'] != '')
606
606
{
607
-
$this->output->addMessage(Output::FATAL, 'The homepage value allows only URLs or can be left empty.', $originFile);
607
+
$this->output->addMessage(Output::ERROR, 'The homepage value allows only URLs or can be left empty.', $originFile);
608
608
}
609
609
// Check for the correct license value
610
610
if ($jsonContent['license'] != 'GPL-2.0-only')
@@ -614,16 +614,16 @@ public function validateJsonFile($originFile)
614
614
// Check for the authors
615
615
if (!array_key_exists('authors', $jsonContent))
616
616
{
617
-
$this->output->addMessage(Output::FATAL, 'The authors value is missing.', $originFile);
617
+
$this->output->addMessage(Output::ERROR, 'The authors value is missing.', $originFile);
618
618
}
619
619
// Check for support, authors should at least give one contact option!
620
620
if (!array_key_exists('support', $jsonContent))
621
621
{
622
-
$this->output->addMessage(Output::FATAL, 'The support value is missing.', $originFile);
622
+
$this->output->addMessage(Output::ERROR, 'The support value is missing.', $originFile);
623
623
}
624
624
elseif (count ($jsonContent['support']) < 1)
625
625
{
626
-
$this->output->addMessage(Output::FATAL, 'The support value has not sub values. Please provide at least one contact option e.g. forum, email.', $originFile);
626
+
$this->output->addMessage(Output::ERROR, 'The support value has not sub values. Please provide at least one contact option e.g. forum, email.', $originFile);
0 commit comments