Closed (fixed)
Project:
Drupal Code Sniffer
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2012 at 01:47 UTC
Updated:
29 Jul 2012 at 20:11 UTC
On a Mac I followed all possible instructions but get as follows:
When typing phpcs -standard=drupalcs cron.php
I get ERROR: option "-t" not known
When typing drupalcs cron.php
I get PHP Fatal error: Cannot redeclare class Drupal_Sniffs_Commenting_FileCommentSniff in /usr/lib/php/pear/PHP/CodeSniffer/Standards/Drupal/Sniffs/Commenting/FileCommentSniff.php on line 30
phpcs --version or drupalcs --version (same result)
PHP_CodeSniffer version 1.3.4 (stable) by Squiz Pty Ltd. (http://www.squiz.net)
I would appreciate a solution
Comments
Comment #1
klausiThe command is
phpcs --standard=Drupal cron.php, see http://drupal.org/node/1587138Comment #2
topdawg commentedThanks, I already tried that, so there' something wrong with my install. I'm on another project now, unfortunately don't have the time to explore at the moment.