[Phpmyadmin-devel] Coding style checks
Alex Marin
alex.ukf at gmail.com
Thu May 3 08:41:04 CEST 2012
On Thu, May 3, 2012 at 9:23 AM, Michal Čihař <michal at 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 at ukf-laptop:~/Documents/work/pma_github$
So my solution was to move that folder under Standards :)
Am I the only one getting this error?
--
Alex
More information about the Developers
mailing list