ユーザ用ツール

サイト用ツール

Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/b/bd8fad3866ec64277afc440460fd3c21.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/b/bd8fad3866ec64277afc440460fd3c21.metadata failed

phpmessdetectorの基本
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/b/bd8fad3866ec64277afc440460fd3c21.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/3/3f4e61f9a1db526f1b798e20eeb39045.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/3/3f4e61f9a1db526f1b798e20eeb39045.metadata failed
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/b/bd8fad3866ec64277afc440460fd3c21.xhtml failed

PHP_CodeSnifferの基本

PHPMessDetectorの基本

前提環境

pear channel-discover pear.pdepend.org
pear install pdepend/PHP_Depend-beta

PHPMDのインストール

pear channel-discover pear.phpmd.org
pear channel-discover pear.pdepend.org
pear install --alldeps phpmd/PHP_PMD-alpha
phpmd

###==========================作業ログ start ==============================###

 [root@dev01:/]$ pear channel-discover pear.pdepend.org
 Adding Channel "pear.pdepend.org" succeeded
 Discovery of channel "pear.pdepend.org" succeeded
 [root@dev01:/]$ pear install pdepend/PHP_Depend-beta
 Did not download optional dependencies: pecl/imagick, use --alldeps to download automatically
 pdepend/PHP_Depend can optionally use package "pecl/imagick" (version >= 2.2.0b2)
 downloading PHP_Depend-1.0.5.tgz ...
 Starting to download PHP_Depend-1.0.5.tgz (182,387 bytes)
 ......................................done: 182,387 bytes
 install ok: channel://pear.pdepend.org/PHP_Depend-1.0.5
 [root@dev01:/]$ pear channel-discover pear.phpmd.org
 Adding Channel "pear.phpmd.org" succeeded
 Discovery of channel "pear.phpmd.org" succeeded
 [root@dev01:/]$ pear channel-discover pear.pdepend.org
 Channel "pear.pdepend.org" is already initialized
 [root@dev01:/]$ pear install --alldeps phpmd/PHP_PMD-alpha
 downloading PHP_PMD-1.3.3.tgz ...
 Starting to download PHP_PMD-1.3.3.tgz (46,219 bytes)
 .............done: 46,219 bytes
 install ok: channel://pear.phpmd.org/PHP_PMD-1.3.3
 [root@dev01:/]$ phpmd
 Mandatory arguments:
 1) A php source code filename or directory. Can be a comma-separated string
 2) A report format
 3) A ruleset filename or a comma-separated string of rulesetfilenames
 
 Optional arguments that may be put after the mandatory arguments:
 --minimumpriority: rule priority threshold; rules with lower priority than this will not be used
 --reportfile: send report output to a file; default to STDOUT
 --suffixes: comma-separated string of valid source code filename extensions
 --exclude: comma-separated string of patterns that are used to ignore directories
 --strict: also report those nodes with a @SuppressWarnings annotation
 
 [root@dev01:/]$
 
 

###==========================作業ログ end ==============================###

*テストの仕方

レポート:'text',ルールセット:'Naming Rules' で実行 phpmd test.php text naming

レポート:'text',ルールセット:'Naming Rules' で実行 phpmd test.php text naming

レポート:'text',ルールセット:'Unused Code Rules' で実行 phpmd test.php text unusedcode

レポート:'xml',ルールセット:'Unused Code Rules' で実行 phpmd test.php xml unusedcode

phpmessdetectorの基本.txt · 最終更新: 2013/11/28 11:37 by luis_lee