Top Level :: PHP

Package Information: PHP_CodeSniffer 1.0.0RC1

Show All Changelogs
» Version » Information
1.1.0 2008-07-14     stable
1.1.0RC3 2008-07-03     beta
1.1.0RC2 2008-06-13     beta
1.1.0RC1 2008-05-13     beta
1.1.0a1 2008-04-21     alpha
1.0.1 2008-02-03     stable
1.0.0 2007-12-21     stable
1.0.0RC3 2007-11-30     beta
1.0.0RC2 2007-11-14     beta
1.0.0RC1Download

Release date: 2007-11-01 01:45 UTC
Release state: beta

Changelog:

- Main phpcs script can now be run from a CVS checkout without installing the package
- Added a new CSV report format
-- Header row indicates what position each element is in
-- Always use the header row to determine positions rather than assuming the format, as it may change
- XML and CSV report formats now contain information about which column the error occurred at
-- Useful if you want to highlight the token that caused the error in a custom application
- Square bracket tokens now have bracket_opener and bracket_closer set
- Added new Squiz SemicolonSpacingSniff to throw errors if whitespace is found before a semicolon
- Added new Squiz ArrayBracketSpacingSniff to throw errors if whitespace is found around square brackets
- Added new Squiz ObjectOperatorSpacingSniff to throw errors if whitespace is found around object operators
- Added new Squiz DisallowMultipleAssignmentsSniff to throw errors if multiple assignments are on the same line
- Added new Squiz ScopeKeywordSpacingSniff to throw errors if there is not a single space after a scope modifier
- Added new Squiz ObjectInstantiationSniff to throw errors if new objects are not assigned to a variable
- Added new Squiz FunctionDuplicateArgumentSniff to throw errors if argument is declared multiple times in a function
- Added new Squiz FunctionOpeningBraceSpaceSniff to ensure there are no blank lines after a function open brace
- Added new Squiz CommentedOutCodeSniff to warn about comments that looks like they are commented out code blocks
- Added CyclomaticComplexitySniff to Squiz standard
- Added NestingLevelSniff to Squiz standard
- Squiz ForbiddenFunctionsSniff now recommends echo() instead of print()
- Squiz ValidLogicalOperatorsSniff now recommends ^ instead of xor
- Squiz SwitchDeclarationSniff now contains more checks
-- A single space is required after the case keyword
-- No space is allowed before the colon in a case or default statement
-- All switch statements now require a default case
-- Default case must contain a break statement
-- Empty default case must contain a comment describing why the default is ignored
-- Empty case statements are not allowed
-- Case and default statements must not be followed by a blank line
-- Break statements must be followed by a blank line or the closing brace
-- There must be no blank line before a break statement
- Squiz standard is now using the PEAR IncludingFileSniff
- PEAR ClassCommentSniff no longer complains about unknown tags
- PEAR FileCommentSniff no longer complains about unknown tags
- PEAR FileCommentSniff now accepts multiple @copyright tags
- Squiz BlockCommentSniff now checks that comment starts with a capital letter
- Squiz InlineCommentSniff now has better checking to ensure comment starts with a capital letter
- Squiz ClassCommentSniff now checks that short and long comments start with a capital letter
- Squiz FunctionCommentSniff now checks that short, long and param comments start with a capital letter
- Squiz VariableCommentSniff now checks that short and long comments start with a capital letter
- Fixed error with multi-token array indexes in Squiz ArrayDeclarationSniff
- Fixed error with checking shorthand IF statements without a semicolon in Squiz InlineIfDeclarationSniff
- Fixed error where constants used as defulat values in function declarations were seen as type hints
- Fixed bug #12316 : PEAR is no longer the default standard
- Fixed bug #12321 : wrong detection of missing function docblock

Dependencies:
  • PHP Version: PHP 5.1.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
0.9.0 2007-09-24     beta
0.8.0 2007-08-08     beta
0.7.0 2007-07-02     beta
0.6.0 2007-05-15     beta
0.5.0 2007-04-17     beta
0.4.0 2007-02-18     beta
0.3.0 2007-01-11     beta
0.2.0 2006-10-12     alpha
0.1.1 2006-09-25     alpha
0.1.0 2006-09-18     alpha
0.0.5 2006-09-18     alpha