それぞれのルールは以下からDL出来ます。
FuelPHP
https://github.com/eviweb/fuelphp-phpcs
CodeIgniter
https://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer
CakePHP
https://github.com/cakephp/cakephp-codesniffer
以下、手順です。(DLで発生するmaster.zipは都度、削除して下さい。)
最初の状態
$ phpcs -i The installed coding standards are PEAR, Zend, PSR2, MySource, PHPCS, PSR1 and SquizFuelPHPのルールをインストール
$ cd ~/tmp/ $ wget https://github.com/eviweb/fuelphp-phpcs/archive/master.zip $ unzip master.zip $ cd fuelphp-phpcs-master/Standards/ $ sudo mv FuelPHP/ /usr/local/php/latest/lib/php/PHP/CodeSniffer/Standards/ $ phpcs -i The installed coding standards are PEAR, FuelPHP, Zend, PSR2, MySource, PHPCS, PSR1 and SquizCodeIgniterのルールをインストール
$ cd ~/tmp/ $ wget https://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer/archive/master.zip $ unzip master.zip $ cd CodeIgniter-for-PHP_CodeSniffer-master/ $ mv src/ CodeIgniter $ sudo mv CodeIgniter/ /usr/local/php/latest/lib/php/PHP/CodeSniffer/Standards/ $ phpcs -i The installed coding standards are PEAR, FuelPHP, Zend, PSR2, CodeIgniter, MySource, PHPCS, PSR1 and SquizCakePHPのルールをインストール
$ cd ~/tmp/ $ wget https://github.com/cakephp/cakephp-codesniffer/archive/master.zip $ unzip master.zip $ mv cakephp-codesniffer-master/ CakePHP $ sudo mv CakePHP/ /usr/local/php/latest/lib/php/PHP/CodeSniffer/Standards/ $ phpcs -i The installed coding standards are PEAR, FuelPHP, Zend, PSR2, CodeIgniter, MySource, PHPCS, CakePHP, PSR1 and Squiz
No comments:
Post a Comment