for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace PurpleBooth\GitLintValidators\Status;
use PurpleBooth\GitLintValidators\Validator\LimitTheTitleLengthTo69CharactersValidator;
/**
* This is the status returned when the LimitTheTitleLengthTo69CharactersValidator identifies a problem
*
* @see LimitTheTitleLengthTo69CharactersValidator
* @package PurpleBooth\GitLintValidators\Status
*/
class LimitTheTitleLengthTo69CharactersStatus implements Status
{
* Get the importance of this status.
* The lower the value the less important it is, the higher the more important.
* @return int
public function getWeight() : int
return Status::WEIGHT_ERROR;
}
* A human readable message that describes this state
* This will be displayed to the user via the GitHub state
* @return string
public function getMessage() : string
return 'Please limit the subject line length of the commit message to 69 characters';
* Is true if the status is one that should not be taken as indicative of a incorrectly formatted message
* @return boolean
public function isPositive() : bool
return false;
* Get a URL with further explanation about this commit message status
public function getDetailsUrl() : string
return "http://chris.beams.io/posts/git-commit/#limit-50";