Le 2012-05-03 02:41, Alex Marin a écrit :
On Thu, May 3, 2012 at 9:23 AM, Michal Čihař michal@cihar.com wrote:
Just a small comment:
you don't have to copy PMAStandard anywhere with phpcs if it is available in current directory - so running phpcs --standard=PMAStandard in phpMyAdmins checkout will work
Well I've initially tried it this way, but I get a stack trace:
$ git co master $ git pull upstream master $ ls -al | grep PMA drwxrwxr-x 3 alex alex 4096 May 3 09:32 PMAStandard $ phpcs --standard=PMAStandard libraries/import/* PHP Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Class PMAStandard_Sniffs_Commenting_FileCommentSniff not found' in /home/alex/Documents/work/pma_github/PMAStandard/Sniffs/Commenting/ClassCommentSniff.php:23 Stack trace: #0 /usr/share/php/PHP/CodeSniffer.php(652): include_once() #1 /usr/share/php/PHP/CodeSniffer.php(438): PHP_CodeSniffer->setTokenListeners('PMAStandard', Array) #2 /usr/share/php/PHP/CodeSniffer/CLI.php(551): PHP_CodeSniffer->process(Array, 'PMAStandard', Array, false) #3 /usr/bin/phpcs(37): PHP_CodeSniffer_CLI->process() #4 {main} thrown in /home/alex/Documents/work/pma_github/PMAStandard/Sniffs/Commenting/ClassCommentSniff.php on line 23 alex@ukf-laptop:~/Documents/work/pma_github$
So my solution was to move that folder under Standards :) Am I the only one getting this error?
I get the same error; I am running PHP 5.4.0.