PHP_CodeSniffer 1.5.5 / 2.0.0 RC2

A PHP package for detecting coding standard violations
PHP_CodeSniffer is available as a PEAR package.

Under the hood, it works by tokenising PHP, JavaScript and CSS files and checking it against a defined set of coding standards.

PHP_CodeSniffer is one of the best test tools during development because it allows programmers to keep their app's source code clean and standards consistent.

last updated on:
October 10th, 2014, 12:36 GMT
price:
FREE!
developed by:
Squiz Pty Ltd
homepage:
www.squizlabs.com
license type:
BSD License
operating system(s):
Windows / Linux / Mac OS / BSD / Solaris
category:
C: \ Development Tools \ Test Tools and Applications

FREE!

In a hurry? Add it to your Download Basket!

user rating 1

5.0/5
 

0/5

What's New in version 2.0.0 Alpha 2
  • Line length warnings will now be shown for lines that refer to licence and VCS information. The line length sniff previously ignored these lines, which meant that it had to run a regular expression on every line it checked.
  • The $tokens array has a new length index that you can use to determine the length of the token's content rather than having to call strlen() yourself and deal with character encoding.
  • The use of in_array() when checking the PHP_CodeSniffer_Tokens static vars impacted performance significantly, so they have been restructured so that you can also use isset() on them.
  • Custom reports can now specify a $recordErrors member var that, when set to FALSE, will tell PHP_CodeSniffer that it doesn't need to record errors during the run. This gives a significant memory saving if you are using a custom report to output summary information rather than a full list of errors found.
read full changelog

Add your review!

SUBMIT