Package Details: php-codesniffer 3.5.8-1

Git Clone URL: (read-only, click to copy)
Package Base: php-codesniffer
Description: PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files to detect and fix violations of a defined set of coding standards.
Upstream URL:
Licenses: BSD
Submitter: None
Maintainer: sender
Last Packager: sender
Votes: 60
Popularity: 0.053155
First Submitted: 2010-06-13 09:00
Last Updated: 2020-10-23 22:16

Pinned Comments

sender commented on 2018-11-01 13:47

Installation note: the message "One or more PGP signatures could not be verified!" means that you need to import Greg Sherwood's key by running gpg --recv-keys 31C7E470E2138192. More info on keys:

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

KingCrunch commented on 2016-04-14 22:08


I've seen the same issue and yes, adjusting the include_path should solve my problem. Is there's a reason you don't use the PHAR distribution? It contains all required dependencies, thus there is no need to change system settings to get things working.

broiniac commented on 2016-01-14 16:12

No, but thanks for update.
My error can be fixed by setting:
include_path = ".:/usr/share/pear"
in php.ini.

Thanks for your reply :)

sender commented on 2016-01-13 17:05

Updated to latest stable v2.5.0
@Alphanumerix: does this fix your problem?

broiniac commented on 2016-01-13 15:59

With newest php available in repo (7.0.2) I've error posted below:

PHP Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in /usr/bin/phpcs on line 21
PHP Warning: include_once(): Failed opening 'PHP/CodeSniffer/CLI.php' for inclusion (include_path='.:') in /usr/bin/phpcs on line 21
PHP Fatal error: Uncaught Error: Class 'PHP_CodeSniffer_CLI' not found in /usr/bin/phpcs:24
Stack trace:
#0 {main}
thrown in /usr/bin/phpcs on line 24

I believe it's related to this error from 2016-01-04 04:55 posted here:
Error in post above is fixed now (or at least it's not occurring on my box).

sender commented on 2015-12-10 16:23

@biinari weird, should be fixed now

biinari commented on 2015-12-10 15:30

Looks like the sha256sum is incorrect (perhaps upstream re-submitted to PEAR)

biinari commented on 2015-12-10 15:25

@vohof You can put your additional coding standards whereever you like and configure PHP Codesniffer to find them using

phpcs --config-set installed_paths /path/to/wpcs

(replace /path/to/wpcs with the path where you put your extra coding standards) as per instructions in

vohof commented on 2015-05-09 05:25

Hi, where do I install additional coding standards? e.g.

vohof commented on 2015-05-09 04:57

PHP Warning: is_file(): open_basedir restriction in effect. File(/usr/bin/../CodeSniffer/CLI.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/) in /usr/bin/phpcs on line 18
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpcs:0
PHP 2. is_file() /usr/bin/phpcs:18

sender commented on 2015-04-09 10:16

@ram4nd Can you clarify? Is it a problem with the php-codesniffer or with the custom coding style rule set that you use? After some experimenting I believe it to be the latter. Suggestions are welcome.