Top "Codesniffer" questions

This tag is for questions having to do with the PHP_CodeSniffer PEAR package from Squiz Labs, which is used for static analysis of PHP code.

Using Jenkins and Php Code Sniffer

I'm trying to use the Php Code Sniffer plugin in Jenkins. It generates a checkstyle.xml file but there are …

php jenkins checkstyle codesniffer
PHP Code Sniffer Rules

I'm having trouble getting these rules to work: No space after function name: // good public function cities() // bad public function …

php codesniffer phplint
What are the main differences between the PSR-2 coding standard and the Symfony2 code standard for phpcs?

I am trying to figure out which code style to enforce with the phpcs code sniffer. Since the popularity of …

php symfony coding-style codesniffer psr-2
How to use PHP_CodeSniffer with XAMPP?

I am running XAMPP with windows XP. I just download PHP_CodeSniffer and cannot figure out how to run it. …

php codesniffer
Custom ruleset for phpcs using PHPStorm

I'm trying to somehow convince the phpcs to use the Zend coding guidelines, -but- to allow me to have variables …

php phpstorm codesniffer
Is there a PHPCS standard targeting PHP docblocks?

Is there a PHPCS coding standard that would check that proper annotations (@param, @return, @throws, etc.) are present in a …

php phpdoc codesniffer
How to override a rule/sniff in a PHP CodeSniffer ruleset correctly and to avoid doublechecking of code?

I've extended a class of the PSR-2 sniff set. Now the checks are executed two times -- even if my …

php coding-style zend-framework2 codesniffer
Install PHP CodeSniffer with Netbeans 7.0.1 on Windows 7 64 bits

I'm trying to install PHP_CodeSniffer with Netbeans in my computer with Windows 7 64 bits. So far... 1) I've downloaded from https://…

php netbeans codesniffer
Setup Yii 2 Web Framework Coding Standard in NetBeans

I read this and this. But how to setup this in NetBeans IDE in Windows machine?

php netbeans yii yii2 codesniffer
Why aren't CodeSniffer excluding the --ignore specified folders?

I'm using Jenkins(Hudson) CI, and every night analysing the code using a number of tools for repporting, including Codesniffer …

php ant jenkins hudson codesniffer