WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
On Thu, May 3, 2012 at 9:23 AM, Michal Čihař <michal@...> 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
#0 /usr/share/php/PHP/CodeSniffer.php(652): include_once()
PHP_CodeSniffer->process(Array, 'PMAStandard', Array, false)
#3 /usr/bin/phpcs(37): PHP_CodeSniffer_CLI->process()
thrown in /home/alex/Documents/work/pma_github/PMAStandard/Sniffs/Commenting/ClassCommentSniff.php
on line 23
So my solution was to move that folder under Standards :)
Am I the only one getting this error?