PHP, CSS 및 JS 코딩 표준 위반을 탐지하는 라이브러리입니다.
https://github.com/squizlabs/PHP_CodeSniffer
PHP_CodeSniffer는 두 개의 PHP 스크립트 세트입니다.
정의 된 코딩 표준의 위반을 감지하기 위해 PHP, JavaScript 및 CSS 파일을 토큰 화하는 기본 phpcs 스크립트 및 코딩 표준 위반을 자동으로 수정하는 두 번째 phpcbf 스크립트.
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
등록된 댓글이 없습니다.