for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace PurpleBooth\GitGitHubLint\Status;
use PurpleBooth\GitGitHubLint\Validator\SoftLimitTheTitleLengthTo50CharactersValidator;
/**
* This is the status returned when the SoftLimitTheTitleLengthTo50CharactersValidator identifies a problem
*
* @see SoftLimitTheTitleLengthTo50CharactersValidator
* @package PurpleBooth\GitGitHubLint\Status
*/
class SoftLimitTheTitleLengthTo50CharactersStatus 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_WARN;
}
* The GitHub equivalent of this state
* Can be one of pending, success, error, or failure.
* @return string
public function getState() : string
return Status::STATE_SUCCESS;
* A human readable message that describes this state
* This will be displayed to the user via the GitHub state
public function getMessage() : string
return 'Looks good, but can you shorten the subject of the commit message to 50 characters or less?';