PHP_CodeSniffer는 PHP 파일을 토큰 화하고 정의 된 코딩 표준 세트의 위반을 감지합니다.
https://github.com/squizlabs/PHP_CodeSniffer
# Download using curl
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar
# Or download using wget
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar
# Then test the downloaded PHARs
php phpcs.phar -h
php phpcbf.phar -h
등록된 댓글이 없습니다.