@@ -14,11 +14,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
14141515 <active >yes</active >
1616 </lead >
17- <date >2014-12-18 </date >
18- <time >13:37 :00</time >
17+ <date >2015-01-22 </date >
18+ <time >09:42 :00</time >
1919 <version >
20- <release >2.1.1 </release >
21- <api >2.1.1 </api >
20+ <release >2.2.0 </release >
21+ <api >2.2.0 </api >
2222 </version >
2323 <stability >
2424 <release >stable</release >
@@ -2351,6 +2351,82 @@ http://pear.php.net/dtd/package-2.0.xsd">
23512351 </filelist >
23522352 </phprelease >
23532353 <changelog >
2354+ <release >
2355+ <version >
2356+ <release >2.2.0</release >
2357+ <api >2.2.0</api >
2358+ </version >
2359+ <stability >
2360+ <release >stable</release >
2361+ <api >stable</api >
2362+ </stability >
2363+ <date >2015-01-22</date >
2364+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
2365+ <notes >
2366+ - Added (hopefully) tastefully used colors to report and progress output for the phpcs command
2367+ -- Use the --colors command line argument to use colors in output
2368+ -- Use the command "phpcs --config-set colors true" to turn colors on by default
2369+ -- Use the --no-colors command line argument to turn colors off when the config value is set
2370+ - Added support for using the full terminal width for report output
2371+ -- Use the --report-width=auto command line argument to auto-size the reports
2372+ -- Use the command "phpcs --config-set report_width auto" to use auto-sizing by default
2373+ - Reports will now size to fit inside the report width setting instead of always using padding to fill the space
2374+ - If no files or standards are specified, PHPCS will now look for a phpcs.xml file in the current directory
2375+ -- This file has the same format as a standard ruleset.xml file
2376+ -- The phpcs.xml file should specify (at least) files to process and a standard/sniffs to use
2377+ -- Useful for running the phpcs and phpcbf commands without any arguments at the top of a repository
2378+ - Default file paths can now be specified in a ruleset.xml file using the "file" tag
2379+ -- File paths are only processed if no files were specified on the command line
2380+ - Extensions specified on the CLI are now merged with those set in ruleset.xml files
2381+ -- Previously, the ruleset.xml file setting replaced the CLI setting completely
2382+ - Squiz coding standard now requires lowercase PHP constants (true, false and null)
2383+ -- Removed Squiz.NamingConventions.ConstantCase sniff as the rule is now consistent across PHP and JS files
2384+ - Squiz FunctionOpeningBraceSpaceSniff no longer does additional checks for JS functions
2385+ -- PHP and JS functions and closures are now treated the same way
2386+ - Squiz MultiLineFunctionDeclarationSniff now supports JS files
2387+ - Interactive mode no longer breaks if you also specify a report type on the command line
2388+ - PEAR InlineCommentSniff now fixes the Perl-style comments that it finds (request #375)
2389+ - PSR2 standard no longer fixes the placement of docblock open tags as comments are excluded from this standard
2390+ - PSR2 standard now sets a default tab width of 4 spaces
2391+ - Generic DocCommentSniff now only disallows lowercase letters at the start of a long/short comment (request #377)
2392+ -- All non-letter characters are now allowed, including markdown special characters and numbers
2393+ - Generic DisallowMultipleStatementsSniff now allows multiple open/close tags on the same line (request #423)
2394+ - Generic CharacterBeforePHPOpeningTagSniff now only checks the first PHP tag it finds (request #423)
2395+ - Generic CharacterBeforePHPOpeningTagSniff now allows a shebang line at the start of the file (request #20481)
2396+ - Generic InlineHTMLUnitTest now allows a shebang line at the start of the file (request #20481)
2397+ - PEAR ObjectOperatorIndentSniff now only checks object operators at the start of a line
2398+ - PEAR FileComment and ClassComment sniffs no longer have @ in their error codes
2399+ -- E.g., PEAR.Commenting.FileComment.Missing@categoryTag becomes PEAR.Commenting.FileComment.MissingCategoryTag
2400+ -- Thanks to Grzegorz Rygielski for the patch
2401+ - Squiz ControlStructureSpacingSniff no longer enforces a blank line before CATCH statements
2402+ - Squiz FunctionCommentSniff now fixes the return type in the @return tag (request #392)
2403+ - Squiz BlockCommentSniff now only disallows lowercase letters at the start of the comment
2404+ - Squiz InlineCommentSniff now only disallows lowercase letters at the start of the comment
2405+ - Squiz OperatorSpacingSniff now has a setting to ignore newline characters around operators (request #348)
2406+ -- Default remains FALSE, so newlines are not allowed
2407+ -- Override the "ignoreNewlines" setting in a ruleset.xml file to change
2408+ - PSR2 ControlStructureSpacingSniff now checks for, and fixes, newlines after the opening parenthesis
2409+ - Added a markdown document generator (--generator=markdown to use)
2410+ -- Thanks to Stefano Kowalke for the contribution
2411+ - Fixed bug #379 : Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast incorrectly detects comments
2412+ - Fixed bug #382 : JS tokenizer incorrect for inline conditionally created immediately invoked anon function
2413+ - Fixed bug #383 : Squiz.Arrays.ArrayDeclaration.ValueNoNewline incorrectly detects nested arrays
2414+ - Fixed bug #386 : Undefined offset in Squiz.FunctionComment sniff when param has no comment
2415+ - Fixed bug #390 : Indentation of non-control structures isn't adjusted when containing structure is fixed
2416+ - Fixed bug #400 : InlineControlStructureSniff fails to fix when statement has no semicolon
2417+ - Fixed bug #401 : PHPCBF no-patch option shows an error when there are no fixable violations in a file
2418+ - Fixed bug #405 : The "Squiz.WhiteSpace.FunctionSpacing" sniff removes class "}" during fixing
2419+ - Fixed bug #407 : PEAR.ControlStructures.MultiLineCondition doesn't account for comments at the end of lines
2420+ - Fixed bug #410 : The "Squiz.WhiteSpace.MemberVarSpacing" not respecting "var"
2421+ - Fixed bug #411 : Generic.WhiteSpace.ScopeIndent.Incorrect - false positive with multiple arrays in argument list
2422+ - Fixed bug #412 : PSR2 multi-line detection doesn't work for inline IF and string concats
2423+ - Fixed bug #414 : Squiz.WhiteSpace.MemberVarSpacing - inconsistent checking of member vars with comment
2424+ - Fixed bug #433 : Wrong detection of Squiz.Arrays.ArrayDeclaration.KeyNotAligned when key contains space
2425+ - Fixed bug #434 : False positive for spacing around "=>" in inline array within foreach
2426+ - Fixed bug #452 : Ruleset exclude-pattern for specific sniff code ignored when using CLI --ignore option
2427+ - Fixed bug #20482 : Scope indent sniff can get into infinite loop when processing a parse error
2428+ </notes >
2429+ </release >
23542430 <release >
23552431 <version >
23562432 <release >2.1.0</release >
0 commit comments