» Version | » Information |
---|---|
2023-02-22 stable |
|
2022-06-18 stable |
|
2022-06-13 stable |
|
2021-12-12 stable |
|
2021-10-11 stable |
|
2021-04-08 stable |
|
2020-10-23 stable |
|
2020-10-22 stable |
|
2020-08-10 stable |
|
2020-04-16 stable |
|
2020-01-30 stable |
|
2019-12-04 stable |
|
2019-10-28 stable |
|
2019-10-16 stable |
|
2019-09-26 stable |
|
2019-04-10 stable |
|
2019-03-18 stable |
|
2018-12-19 stable |
|
2018-09-23 stable |
|
2018-07-26 stable |
|
2018-06-06 stable |
|
2018-02-20 stable |
|
2017-12-19 stable |
|
2017-12-17 stable |
|
2017-12-12 stable |
|
2017-10-16 stable |
|
2017-09-19 stable |
|
2017-07-17 stable |
|
2017-06-13 stable |
|
2017-05-21 stable |
|
2017-05-03 stable |
|
2017-05-03 stable |
|
2017-03-01 beta |
|
2017-03-01 stable |
|
2017-02-01 beta |
|
2017-02-01 stable |
|
2016-11-29 beta |
|
2016-11-29 stable |
|
2016-09-01 beta |
|
2016-09-01 stable |
|
2016-07-19 alpha |
|
2016-07-13 stable |
|
2016-05-30 stable |
|
2016-04-03 stable |
|
2016-01-19 stable |
|
2015-12-10 stable |
|
2015-11-23 stable |
|
2015-09-09 stable |
|
2015-06-24 stable |
|
2015-04-29 stable |
|
2015-04-23 stable |
|
2015-03-04 stable |
|
2.2.0 |
Easy InstallNot sure? Get more info. pear install PHP_CodeSniffer-2.2.0 Pyrus InstallTry PEAR2's installer, Pyrus. php pyrus.phar install pear/PHP_CodeSniffer-2.2.0 Release date: 2015-01-22 00:02 UTC Release state: stable Release uploaded by: squiz Changelog: - Added (hopefully) tastefully used colors to report and progress output for the phpcs command -- Use the --colors command line argument to use colors in output -- Use the command "phpcs --config-set colors true" to turn colors on by default -- Use the --no-colors command line argument to turn colors off when the config value is set - Added support for using the full terminal width for report output -- Use the --report-width=auto command line argument to auto-size the reports -- Use the command "phpcs --config-set report_width auto" to use auto-sizing by default - Reports will now size to fit inside the report width setting instead of always using padding to fill the space - If no files or standards are specified, PHPCS will now look for a phpcs.xml file in the current directory -- This file has the same format as a standard ruleset.xml file -- The phpcs.xml file should specify (at least) files to process and a standard/sniffs to use -- Useful for running the phpcs and phpcbf commands without any arguments at the top of a repository - Default file paths can now be specified in a ruleset.xml file using the "file" tag -- File paths are only processed if no files were specified on the command line - Extensions specified on the CLI are now merged with those set in ruleset.xml files -- Previously, the ruleset.xml file setting replaced the CLI setting completely - Squiz coding standard now requires lowercase PHP constants (true, false and null) -- Removed Squiz.NamingConventions.ConstantCase sniff as the rule is now consistent across PHP and JS files - Squiz FunctionOpeningBraceSpaceSniff no longer does additional checks for JS functions -- PHP and JS functions and closures are now treated the same way - Squiz MultiLineFunctionDeclarationSniff now supports JS files - Interactive mode no longer breaks if you also specify a report type on the command line - PEAR InlineCommentSniff now fixes the Perl-style comments that it finds (request #375) - PSR2 standard no longer fixes the placement of docblock open tags as comments are excluded from this standard - PSR2 standard now sets a default tab width of 4 spaces - Generic DocCommentSniff now only disallows lowercase letters at the start of a long/short comment (request #377) -- All non-letter characters are now allowed, including markdown special characters and numbers - Generic DisallowMultipleStatementsSniff now allows multiple open/close tags on the same line (request #423) - Generic CharacterBeforePHPOpeningTagSniff now only checks the first PHP tag it finds (request #423) - Generic CharacterBeforePHPOpeningTagSniff now allows a shebang line at the start of the file (request #20481) - Generic InlineHTMLUnitTest now allows a shebang line at the start of the file (request #20481) - PEAR ObjectOperatorIndentSniff now only checks object operators at the start of a line - PEAR FileComment and ClassComment sniffs no longer have @ in their error codes -- E.g., PEAR.Commenting.FileComment.Missing@categoryTag becomes PEAR.Commenting.FileComment.MissingCategoryTag -- Thanks to Grzegorz Rygielski for the patch - Squiz ControlStructureSpacingSniff no longer enforces a blank line before CATCH statements - Squiz FunctionCommentSniff now fixes the return type in the @return tag (request #392) - Squiz BlockCommentSniff now only disallows lowercase letters at the start of the comment - Squiz InlineCommentSniff now only disallows lowercase letters at the start of the comment - Squiz OperatorSpacingSniff now has a setting to ignore newline characters around operators (request #348) -- Default remains FALSE, so newlines are not allowed -- Override the "ignoreNewlines" setting in a ruleset.xml file to change - PSR2 ControlStructureSpacingSniff now checks for, and fixes, newlines after the opening parenthesis - Added a markdown document generator (--generator=markdown to use) -- Thanks to Stefano Kowalke for the contribution - Fixed bug #379 : Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast incorrectly detects comments - Fixed bug #382 : JS tokenizer incorrect for inline conditionally created immediately invoked anon function - Fixed bug #383 : Squiz.Arrays.ArrayDeclaration.ValueNoNewline incorrectly detects nested arrays - Fixed bug #386 : Undefined offset in Squiz.FunctionComment sniff when param has no comment - Fixed bug #390 : Indentation of non-control structures isn't adjusted when containing structure is fixed - Fixed bug #400 : InlineControlStructureSniff fails to fix when statement has no semicolon - Fixed bug #401 : PHPCBF no-patch option shows an error when there are no fixable violations in a file - Fixed bug #405 : The "Squiz.WhiteSpace.FunctionSpacing" sniff removes class "}" during fixing - Fixed bug #407 : PEAR.ControlStructures.MultiLineCondition doesn't account for comments at the end of lines - Fixed bug #410 : The "Squiz.WhiteSpace.MemberVarSpacing" not respecting "var" - Fixed bug #411 : Generic.WhiteSpace.ScopeIndent.Incorrect - false positive with multiple arrays in argument list - Fixed bug #412 : PSR2 multi-line detection doesn't work for inline IF and string concats - Fixed bug #414 : Squiz.WhiteSpace.MemberVarSpacing - inconsistent checking of member vars with comment - Fixed bug #433 : Wrong detection of Squiz.Arrays.ArrayDeclaration.KeyNotAligned when key contains space - Fixed bug #434 : False positive for spacing around "=>" in inline array within foreach - Fixed bug #452 : Ruleset exclude-pattern for specific sniff code ignored when using CLI --ignore option - Fixed bug #20482 : Scope indent sniff can get into infinite loop when processing a parse error Dependencies:
|
2014-12-18 stable |
|
2014-12-05 stable |
|
2014-12-04 stable |
|
2014-11-06 beta |
|
2014-10-16 beta |
|
2014-09-26 beta |
|
2014-09-26 stable |
|
2014-08-06 beta |
|
2014-08-06 stable |
|
2014-05-01 alpha |
|
2014-05-01 stable |
|
2014-02-05 alpha |
|
2014-02-05 stable |
|
2013-12-12 stable |
|
2013-11-27 stable |
|
2013-11-25 stable |
|
2013-09-26 beta |
|
2013-09-26 stable |
|
2013-07-25 beta |
|
2013-07-25 stable |
|
2013-04-04 beta |
|
2013-04-04 stable |
|
2013-02-08 beta |
|
2013-02-06 stable |
|
2012-12-04 stable |
|
2012-11-09 stable |
|
2012-11-01 stable |
|
2012-09-26 stable |
|
2012-08-08 stable |
|
2012-07-12 stable |
|
2012-05-17 stable |
|
2012-02-17 stable |
|
2011-12-01 stable |
|
2011-11-03 stable |
|
2011-03-17 stable |
|
2011-01-14 beta |
|
2010-09-03 beta |
|
2010-07-15 alpha |
|
2010-01-27 stable |
|
2009-11-17 stable |
|
2009-08-17 stable |
|
2009-07-07 beta |
|
2009-05-25 beta |
|
2009-03-09 beta |
|
2008-12-18 alpha |
|
2008-07-14 stable |
|
2008-07-03 beta |
|
2008-06-13 beta |
|
2008-05-12 beta |
|
2008-04-20 alpha |
|
2008-02-03 stable |
|
2007-12-20 stable |
|
2007-11-29 beta |
|
2007-11-13 beta |
|
2007-10-31 beta |
|
2007-09-24 beta |
|
2007-08-08 beta |
|
2007-07-01 beta |
|
2007-05-14 beta |
|
2007-04-16 beta |
|
2007-02-18 beta |
|
2007-01-11 beta |
|
2006-10-12 alpha |
|
2006-09-25 alpha |
|
2006-09-18 alpha |
|
2006-09-18 alpha |