From cb7c53e3f9b2d1b01f0133f5b8c6d94294b9bb1a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Jul 2010 16:04:19 +0000 Subject: [PATCH] Qual: Add phpcheckstyle --- dev/phpcheckstyle/README | 16 ++ dev/phpcheckstyle/phpstandard.cfg.xml | 302 ++++++++++++++++++++++++++ 2 files changed, 318 insertions(+) create mode 100644 dev/phpcheckstyle/README create mode 100644 dev/phpcheckstyle/phpstandard.cfg.xml diff --git a/dev/phpcheckstyle/README b/dev/phpcheckstyle/README new file mode 100644 index 00000000000..8a89afa2321 --- /dev/null +++ b/dev/phpcheckstyle/README @@ -0,0 +1,16 @@ +README (English) +-------------------------------- + +This directory contains example of PHPCheckStyle configuration +to use for quality assurance on PHP developpement. + +To run PHPCheckstyle in eclipse, you must: +- install plugin PHP Tools integration http://www.phpsrc.org/eclipse/pti/ +- Unzip PHPCheckStyle archive into a directory. +- Go in Eclipse - Window - Preferences - Dynamic Languages - Validator +Choose External PHP Script, +Set path ro run.php file for localhost +Choose a PHP version, +Set parameter string with + --src %f --config "phpstandard.cfg.xml" --format console +Choose php as Filename extension \ No newline at end of file diff --git a/dev/phpcheckstyle/phpstandard.cfg.xml b/dev/phpcheckstyle/phpstandard.cfg.xml new file mode 100644 index 00000000000..6301e1393fd --- /dev/null +++ b/dev/phpcheckstyle/phpstandard.cfg.xml @@ -0,0 +1,302 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file