for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace PurpleBooth\GitLintValidators;
use PurpleBooth\GitLintValidators\Validator\CapitalizeTheSubjectLineValidator;
use PurpleBooth\GitLintValidators\Validator\DoNotEndTheSubjectLineWithAPeriodValidator;
use PurpleBooth\GitLintValidators\Validator\LimitTheBodyWrapLengthTo72CharactersValidator;
use PurpleBooth\GitLintValidators\Validator\LimitTheTitleLengthTo69CharactersValidator;
use PurpleBooth\GitLintValidators\Validator\SeparateSubjectFromBodyWithABlankLineValidator;
use PurpleBooth\GitLintValidators\Validator\SoftLimitTheTitleLengthTo50CharactersValidator;
/**
* Class ValidatorFactoryImplementation
*
* @package PurpleBooth\GitLintValidators
*/
class ValidatorFactoryImplementation implements ValidatorFactory
{
public function getMessageValidator() : ValidateMessage
$messageValidator = new ValidateMessageImplementation(
[
new CapitalizeTheSubjectLineValidator(),
new DoNotEndTheSubjectLineWithAPeriodValidator(),
new LimitTheBodyWrapLengthTo72CharactersValidator(),
new LimitTheTitleLengthTo69CharactersValidator(),
new SeparateSubjectFromBodyWithABlankLineValidator(),
new SoftLimitTheTitleLengthTo50CharactersValidator(),
]
);
return $messageValidator;
}