PHP 클래스 pchLintCheck, php-commit-hooks

Implements linter checks for all added or modified files.
상속: extends pchCheck
파일 보기 프로젝트 열기: kore/php-commit-hooks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$linters array Configured linters to check source files for validity

공개 메소드들

메소드 설명
__construct ( array $linters = null ) : void Construct from linter configuration
lint ( pchRepository $repository, string $file ) : array Lint single file
validate ( pchRepository $repository ) : void Validate the current check

메소드 상세

__construct() 공개 메소드

Construct from linter configuration
public __construct ( array $linters = null ) : void
$linters array
리턴 void

lint() 공개 메소드

If issues with the passed file are found the function will return an array with the found issues, and an empty array otherwise.
public lint ( pchRepository $repository, string $file ) : array
$repository pchRepository
$file string
리턴 array

validate() 공개 메소드

Validate the check on the specified repository. Returns an array of found issues.
public validate ( pchRepository $repository ) : void
$repository pchRepository
리턴 void

프로퍼티 상세

$linters 보호되어 있는 프로퍼티

Configured linters to check source files for validity
protected array $linters
리턴 array