AKSW/OntoWiki — Issue #38: phpCS does not work
Author: white-gecko
Created: 2012-02-23 12:36:24+00:00
State: open

I get following message, when I run any cs command:

$ make cs-check
/home/natanael/public_html/ontowiki/extensions/map/../../application/tests/CodeSniffer/cs-scripts.sh -c "-s --report=summary "*""
PHP Warning: Missing argument 3 for PHP_CodeSniffer_CLI::processUnknownArgument(), called in /usr/share/php/PHP/CodeSniffer/CLI.php on line 240 and defined in /usr/share/php/PHP/CodeSniffer/CLI.php on line 263
ERROR: option "--severity=5" not known.

Usage: phpcs [-nwlvi] [--report=] [--standard=]
[--config-set key value] [--config-delete key] [--config-show]
[--generator=] [--extensions=]
[--ignore=] [--tab-width=] ...
-n Do not print warnings
-w Print both warnings and errors (on by default)
-l Local directory only, no recursion
-v[v][v] Print verbose output
-i Show a list of installed coding standards
--help Print this help message
--version Print version information
One or more files and/or directories to check
A comma separated list of file extensions to check
(only valid if checking a directory)
A comma separated list of patterns that are used
to ignore directories and files
The name of the coding standard to use
The number of spaces each tab represents
The name of a doc generator to use
(forces doc generation instead of checking)
Print either the "full", "xml", "checkstyle",
"csv" or "summary" report
(the "full" report is printed by default)

I'm using Linux Mint which is based on Ubuntu and I have installed php-pear and php-codesniffer.

`make cs-install` tells me

chmod ugo+x "application/tests/CodeSniffer/cs-scripts.sh"
application/tests/CodeSniffer/cs-scripts.sh -i
CodeSniffer PEAR Package already installed.