Package Details: php-codesniffer 3.9.2-2

Git Clone URL: https://aur.archlinux.org/php-codesniffer.git (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: https://github.com/PHPCSStandards/PHP_CodeSniffer
Licenses: BSD
Submitter: None
Maintainer: sender
Last Packager: sender
Votes: 64
Popularity: 0.000214
First Submitted: 2010-06-13 09:00 (UTC)
Last Updated: 2024-04-30 12:33 (UTC)

Latest Comments

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

broiniac commented on 2016-01-13 15:59 (UTC) (edited on 2016-01-13 16:23 (UTC) by broiniac)

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: https://aur.archlinux.org/packages/php-cs-fixer/?comments=all 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 (UTC)

@biinari weird, should be fixed now

biinari commented on 2015-12-10 15:30 (UTC)

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

biinari commented on 2015-12-10 15:25 (UTC)

@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 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards#standalone

vohof commented on 2015-05-09 05:25 (UTC)

Hi, where do I install additional coding standards? e.g. https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards

sender commented on 2015-04-09 10:16 (UTC)

@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.

ram4nd commented on 2015-04-09 07:36 (UTC)

Does not work with PhpStorm!

bugbuster commented on 2015-04-05 14:24 (UTC)

I found the reason: My user account has a .pearrc which defines custom directories. This .pearrc is picked up by the build and everything is screwed up. I did not get -u working to skip user configuration. So I ended up using HOME=/tmp pear install -P ${pkgdir} ${srcdir}/${_pkgname}-${pkgver}.tgz which worked ;-)

sender commented on 2015-04-04 21:33 (UTC)

@bugbuster I can't reproduce this error. Other packages installing through PEAR apply similar techniques to remove PEAR metadata from $pkgdir. Suggestions are welcome.