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

klausi’s picture

Status: Active » Fixed

The command is phpcs --standard=Drupal cron.php, see http://drupal.org/node/1587138

topdawg’s picture

Thanks, 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.