» 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 |
|
3.3.1 |
Easy InstallNot sure? Get more info. pear install PHP_CodeSniffer-3.3.1 Pyrus InstallTry PEAR2's installer, Pyrus. php pyrus.phar install pear/PHP_CodeSniffer-3.3.1 Release date: 2018-07-26 20:05 UTC Release state: stable Release uploaded by: squiz Changelog: - Support for HHVM has been dropped due to recent unfixed bugs and HHVM refocus on Hack only -- Thanks to Walt Sorensen and Juliette Reinders Folmer for helping to remove all HHVM exceptions from the core - The full report (the default report) now has improved word wrapping for multi-line messages and sniff codes -- Thanks to Juliette Reinders Folmer for the patch - The summary report now sorts files based on their directory location instead of just a basic string sort -- Thanks to Juliette Reinders Folmer for the patch - The source report now orders error codes by name when they have the same number of errors -- Thanks to Juliette Reinders Folmer for the patch - The junit report no longer generates validation errors with the Jenkins xUnit plugin -- Thanks to Nikolay Geo for the patch - Generic.Commenting.DocComment no longer generates the SpacingBeforeTags error if tags are the first content in the docblock -- The sniff will still generate a MissingShort error if there is no short comment -- This allows the MissingShort error to be suppressed in a ruleset to make short descriptions optional - Generic.Functions.FunctionCallArgumentSpacing now properly fixes multi-line function calls with leading commas -- Previously, newlines between function arguments would be removed -- Thanks to Juliette Reinders Folmer for the patch - Generic.PHP.Syntax will now use PHP_BINARY instead of trying to discover the executable path -- This ensures that the sniff will always syntax check files using the PHP version that PHPCS is running under -- Setting the php_path config var will still override this value as normal -- Thanks to Willem Stuursma-Ruwen for the patch - PSR2.Namespaces.UseDeclaration now supports commas at the end of group use declarations -- Also improves checking and fixing for use statements containing parse errors -- Thanks to Juliette Reinders Folmer for the patch - Squiz.Arrays.ArrayDeclaration no longer removes the array opening brace while fixing -- This could occur when the opening brace was on a new line and the first array key directly followed -- This change also stops the KeyNotAligned error message being incorrectly reported in these cases - Squiz.Arrays.ArrayDeclaration no longer tries to change multi-line arrays to single line when they contain comments -- Fixes a conflict between this sniff and some indentation sniffs - Squiz.Classes.ClassDeclaration no longer enforces spacing rules when a class is followed by a function -- Fixes a conflict between this sniff and the Squiz.WhiteSpace.FunctionSpacing sniff - The Squiz.Classes.ValidClassName.NotCamelCaps message now references PascalCase instead of CamelCase -- The "CamelCase class name" metric produced by the sniff has been changed to "PascalCase class name" -- This reflects the fact that the class name check is actually a Pascal Case check and not really Camel Case -- Thanks to Tom H Anderson for the patch - Squiz.Commenting.InlineComment no longer enforces spacing rules when an inline comment is followed by a docblock -- Fixes a conflict between this sniff and the Squiz.WhiteSpace.FunctionSpacing sniff - Squiz.WhiteSpace.OperatorSpacing no longer tries to fix operator spacing if the next content is a comment on a new line -- Fixes a conflict between this sniff and the Squiz.Commenting.PostStatementComment sniff -- Also stops PHPCS annotations from being moved to a different line, potentially changing their meaning -- Thanks to Juliette Reinders Folmer for the patch - Squiz.WhiteSpace.FunctionSpacing no longer checks spacing of functions at the top of an embedded PHP block -- Fixes a conflict between this sniff and the Squiz.PHP.EmbeddedPHP sniff -- Thanks to Juliette Reinders Folmer for the patch - Squiz.WhiteSpace.MemberVarSpacing no longer checks spacing before member vars that come directly after methods -- Fixes a conflict between this sniff and the Squiz.WhiteSpace.FunctionSpacing sniff - Squiz.WhiteSpace.SuperfluousWhitespace now recognizes unicode whitespace at the start and end of a file -- Thanks to Juliette Reinders Folmer for the patch - Fixed bug #2029 : Squiz.Scope.MemberVarScope throws fatal error when a property is found in an interface -- Thanks to Juliette Reinders Folmer for the patch - Fixed bug #2047 : PSR12.Classes.ClassInstantiation false positive when instantiating class from array index - Fixed bug #2048 : GenericFormatting.MultipleStatementAlignment false positive when assigning values inside an array - Fixed bug #2053 : PSR12.Classes.ClassInstantiation incorrectly fix when using member vars and some variable formats - Fixed bug #2065 : Generic.ControlStructures.InlineControlStructure fixing fails when inline control structure contains closure - Fixed bug #2072 : Squiz.Arrays.ArrayDeclaration throws NoComma error when array value is a shorthand IF statement - Fixed bug #2082 : File with "defined() or define()" syntax triggers PSR1.Files.SideEffects.FoundWithSymbols - Fixed bug #2095 : PSR2.Namespaces.NamespaceDeclaration does not handle namespaces defined over multiple lines Dependencies:
|
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 |
|
2015-01-22 stable |
|
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 |