PHP 클래스 PHPMD\PHPMD

저자: Manuel Pichler ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
getFileExtensions ( ) : array(string) Returns an array with valid php source file extensions.
getIgnorePattern ( ) : array(string) Returns an array with string patterns that mark a file path as invalid.
getInput ( ) : string Returns the input source file or directory path.
getOptions ( ) : array Returns additional options for PHPMD or one of it's parser backends.
hasViolations ( ) : boolean This method will return true when the processed source code contains violations.
processFiles ( string $inputPath, string $ruleSets, array $renderers, RuleSetFactory $ruleSetFactory ) : void This method will process all files that can be found in the given input path. It will apply rules defined in the comma-separated $ruleSets argument. The result will be passed to all given renderer instances.
setFileExtensions ( array $fileExtensions ) : void Sets a list of filename extensions for valid php source code files.
setIgnorePattern ( array $ignorePatterns ) : void Sets a list of ignore patterns that is used to exclude directories from the source analysis.
setOptions ( array $options ) : void Sets additional options for PHPMD or one of it's parser backends.

메소드 상세

getFileExtensions() 공개 메소드

Returns an array with valid php source file extensions.
부터: 0.2.0
public getFileExtensions ( ) : array(string)
리턴 array(string)

getIgnorePattern() 공개 메소드

Returns an array with string patterns that mark a file path as invalid.
부터: 0.2.0
public getIgnorePattern ( ) : array(string)
리턴 array(string)

getInput() 공개 메소드

Returns the input source file or directory path.
public getInput ( ) : string
리턴 string

getOptions() 공개 메소드

Returns additional options for PHPMD or one of it's parser backends.
public getOptions ( ) : array
리턴 array

hasViolations() 공개 메소드

This method will return true when the processed source code contains violations.
부터: 0.2.5
public hasViolations ( ) : boolean
리턴 boolean

processFiles() 공개 메소드

This method will process all files that can be found in the given input path. It will apply rules defined in the comma-separated $ruleSets argument. The result will be passed to all given renderer instances.
public processFiles ( string $inputPath, string $ruleSets, array $renderers, RuleSetFactory $ruleSetFactory ) : void
$inputPath string
$ruleSets string
$renderers array
$ruleSetFactory RuleSetFactory
리턴 void

setFileExtensions() 공개 메소드

Sets a list of filename extensions for valid php source code files.
public setFileExtensions ( array $fileExtensions ) : void
$fileExtensions array
리턴 void

setIgnorePattern() 공개 메소드

Sets a list of ignore patterns that is used to exclude directories from the source analysis.
public setIgnorePattern ( array $ignorePatterns ) : void
$ignorePatterns array
리턴 void

setOptions() 공개 메소드

Sets additional options for PHPMD or one of it's parser backends.
public setOptions ( array $options ) : void
$options array Additional backend or PHPMD options.
리턴 void