@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
14
14
15
15
<active >yes</active >
16
16
</lead >
17
- <date >2013-04-04 </date >
18
- <time >10:19 :00</time >
17
+ <date >2013-07-25 </date >
18
+ <time >14:04 :00</time >
19
19
<version >
20
20
<release >1.5.0RC3</release >
21
21
<api >1.5.0RC3</api >
@@ -2253,6 +2253,80 @@ http://pear.php.net/dtd/package-2.0.xsd">
2253
2253
</filelist >
2254
2254
</phprelease >
2255
2255
<changelog >
2256
+ <release >
2257
+ <version >
2258
+ <release >1.5.0RC3</release >
2259
+ <api >1.5.0RC3</api >
2260
+ </version >
2261
+ <stability >
2262
+ <release >beta</release >
2263
+ <api >beta</api >
2264
+ </stability >
2265
+ <date >2013-07-25</date >
2266
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
2267
+ <notes >
2268
+ - Added report type --report=json to show the error list and total counts for all checked files
2269
+ -- Thanks to Jeffrey Fisher for the contribution
2270
+ - PHP_CodeSniffer::isCamelCaps now allows for acronyms at the start of a string if the strict flag is FALSE
2271
+ -- acronyms are defined as at least 2 uppercase characters in a row
2272
+ -- e.g., the following is now valid camel caps with strict set to FALSE: XMLParser
2273
+ - The PHP tokenizer now tokenizes goto labels as T_GOTO_LABEL instead of T_STRING followed by T_COLON
2274
+ - The JS tokenizer now has support for the T_THROW token
2275
+ - Symlinked directories inside CodeSniffer/Standards and in ruleset.xml files are now supported
2276
+ -- Only available since PHP 5.2.11 and 5.3.1
2277
+ -- Thanks to Maik Penz for the patch
2278
+ - The JS tokenizer now correctly identifies T_INLINE_ELSE tokens instead of leaving them as T_COLON
2279
+ -- Thanks to Arnout Boks for the patch
2280
+ - Explaining a standard (phpcs -e) that uses namespaces now works correctly
2281
+ - Restricting a check to specific sniffs (phpcs --sniffs=...) now works correctly with namespaced sniffs
2282
+ -- Thanks to Maik Penz for the patch
2283
+ - Docs added for the entire Generic standard, and many sniffs from other standards are now documented as well
2284
+ -- Thanks to Spencer Rinehart for the contribution
2285
+ - Clearer error message for when the sniff class name does not match the directory structure
2286
+ - Generated HTML docs now correctly show the open PHP tag in code comparison blocks
2287
+ - Added Generic InlineHTMLSniff to ensure a file only contains PHP code
2288
+ - Added Squiz ShorthandSizeSniff to check that CSS sizes are using shorthand notation only when 1 or 2 values are used
2289
+ - Added Squiz ForbiddenStylesSniff to ban the use of some deprecated browser-specific styles
2290
+ - Added Squiz NamedColoursSniff to ban the use of colour names
2291
+ - PSR2 standard no longer enforces no whitespace between the closing parenthesis of a function call and the semicolon
2292
+ - PSR2 ClassDeclarationSniff now ignores empty classes when checking the end brace position
2293
+ - PSR2 SwitchDeclarationSniff no longer reports errors for empty lines between CASE statements
2294
+ - PEAR ObjectOperatorIndentSniff now has a setting to specify how many spaces code should be indented
2295
+ -- Default remains at 4; override the indent setting in a ruleset.xml file to change
2296
+ -- Thanks to Andrey Mindubaev for the patch
2297
+ - Squiz FileExtensionSniff now supports traits
2298
+ -- Thanks to Lucas Green for the patch
2299
+ - Squiz ArrayDeclarationSniff no longer reports errors for no comma at the end of a line that contains a function call
2300
+ - Squiz SwitchDeclarationSniff now supports T_CONTINUE and T_THROW as valid case/default breaking statements
2301
+ - Squiz CommentedOutCodeSniff is now better at ignoring commented out HTML, XML and regular expressions
2302
+ - Squiz DisallowComparisonAssignmentSniff no longer throws errors for the third expression in a FOR statement
2303
+ - Squiz ColourDefinitionSniff no longer throws errors for some CSS class names
2304
+ - Squiz ControlStructureSpacingSniff now supports all types of CASE/DEFAULT breaking statements
2305
+ - Generic CallTimePassByReferenceSniff now reports errors for functions called using a variable
2306
+ -- Thanks to Maik Penz for the patch
2307
+ - Generic ConstructorNameSniff no longer throws a notice for abstract constructors inside abstract classes
2308
+ -- Thanks to Spencer Rinehart for the patch
2309
+ - Squiz ComparisonOperatorUsageSniff now checks inside elseif statements
2310
+ -- Thanks to Arnout Boks for the patch
2311
+ - Squiz OperatorSpacingSniff now reports errors for no spacing around inline then and else tokens
2312
+ -- Thanks to Arnout Boks for the patch
2313
+ - Fixed bug #19811 : Comments not ignored in all cases in AbstractPatternSniff
2314
+ -- Thanks to Erik Wiffin for the patch
2315
+ - Fixed bug #19892 : ELSE with no braces causes incorrect SWITCH break statement indentation error
2316
+ - Fixed bug #19897 : Indenting warnings in templates not consistent
2317
+ - Fixed bug #19908 : PEAR MultiLineCondition Does Not Apply elseif
2318
+ - Fixed bug #19930 : option --report-file generate an empty file
2319
+ - Fixed bug #19935 : notify-send reports do not vanish in gnome-shell
2320
+ -- Thanks to Christian Weiske for the patch
2321
+ - Fixed bug #19944 : docblock squiz sniff "return void" trips over return in lambda function
2322
+ - Fixed bug #19953 : PSR2 - Spaces before interface name for abstract class
2323
+ - Fixed bug #19956 : phpcs warns for Type Hint missing Resource
2324
+ - Fixed bug #19957 : Does not understand trait method aliasing
2325
+ - Fixed bug #19968 : Permission denied on excluded directory
2326
+ - Fixed bug #19969 : Sniffs with namespace not recognized in reports
2327
+ - Fixed bug #19997 : Class names incorrectly detected as constants
2328
+ </notes >
2329
+ </release >
2256
2330
<release >
2257
2331
<version >
2258
2332
<release >1.5.0RC2</release >
@@ -2327,6 +2401,77 @@ http://pear.php.net/dtd/package-2.0.xsd">
2327
2401
-- See CodeSniffer/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php for an example
2328
2402
</notes >
2329
2403
</release >
2404
+ <release >
2405
+ <version >
2406
+ <release >1.4.6</release >
2407
+ <api >1.4.6</api >
2408
+ </version >
2409
+ <stability >
2410
+ <release >stable</release >
2411
+ <api >stable</api >
2412
+ </stability >
2413
+ <date >2013-07-25</date >
2414
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
2415
+ <notes >
2416
+ - Added report type --report=json to show the error list and total counts for all checked files
2417
+ -- Thanks to Jeffrey Fisher for the contribution
2418
+ - The JS tokenizer now has support for the T_THROW token
2419
+ - Symlinked directories inside CodeSniffer/Standards and in ruleset.xml files are now supported
2420
+ -- Only available since PHP 5.2.11 and 5.3.1
2421
+ -- Thanks to Maik Penz for the patch
2422
+ - The JS tokenizer now correctly identifies T_INLINE_ELSE tokens instead of leaving them as T_COLON
2423
+ -- Thanks to Arnout Boks for the patch
2424
+ - Explaining a standard (phpcs -e) that uses namespaces now works correctly
2425
+ - Restricting a check to specific sniffs (phpcs --sniffs=...) now works correctly with namespaced sniffs
2426
+ -- Thanks to Maik Penz for the patch
2427
+ - Docs added for the entire Generic standard, and many sniffs from other standards are now documented as well
2428
+ -- Thanks to Spencer Rinehart for the contribution
2429
+ - Clearer error message for when the sniff class name does not match the directory structure
2430
+ - Generated HTML docs now correctly show the open PHP tag in code comparison blocks
2431
+ - Added Generic InlineHTMLSniff to ensure a file only contains PHP code
2432
+ - Added Squiz ShorthandSizeSniff to check that CSS sizes are using shorthand notation only when 1 or 2 values are used
2433
+ - Added Squiz ForbiddenStylesSniff to ban the use of some deprecated browser-specific styles
2434
+ - Added Squiz NamedColoursSniff to ban the use of colour names
2435
+ - PSR2 standard no longer enforces no whitespace between the closing parenthesis of a function call and the semicolon
2436
+ - PSR2 ClassDeclarationSniff now ignores empty classes when checking the end brace position
2437
+ - PSR2 SwitchDeclarationSniff no longer reports errors for empty lines between CASE statements
2438
+ - PEAR ObjectOperatorIndentSniff now has a setting to specify how many spaces code should be indented
2439
+ -- Default remains at 4; override the indent setting in a ruleset.xml file to change
2440
+ -- Thanks to Andrey Mindubaev for the patch
2441
+ - Squiz FileExtensionSniff now supports traits
2442
+ -- Thanks to Lucas Green for the patch
2443
+ - Squiz ArrayDeclarationSniff no longer reports errors for no comma at the end of a line that contains a function call
2444
+ - Squiz SwitchDeclarationSniff now supports T_CONTINUE and T_THROW as valid case/default breaking statements
2445
+ - Squiz CommentedOutCodeSniff is now better at ignoring commented out HTML, XML and regular expressions
2446
+ - Squiz DisallowComparisonAssignmentSniff no longer throws errors for the third expression in a FOR statement
2447
+ - Squiz ColourDefinitionSniff no longer throws errors for some CSS class names
2448
+ - Squiz ControlStructureSpacingSniff now supports all types of CASE/DEFAULT breaking statements
2449
+ - Generic CallTimePassByReferenceSniff now reports errors for functions called using a variable
2450
+ -- Thanks to Maik Penz for the patch
2451
+ - Generic ConstructorNameSniff no longer throws a notice for abstract constructors inside abstract classes
2452
+ -- Thanks to Spencer Rinehart for the patch
2453
+ - Squiz ComparisonOperatorUsageSniff now checks inside elseif statements
2454
+ -- Thanks to Arnout Boks for the patch
2455
+ - Squiz OperatorSpacingSniff now reports errors for no spacing around inline then and else tokens
2456
+ -- Thanks to Arnout Boks for the patch
2457
+ - Fixed bug #19811 : Comments not ignored in all cases in AbstractPatternSniff
2458
+ -- Thanks to Erik Wiffin for the patch
2459
+ - Fixed bug #19892 : ELSE with no braces causes incorrect SWITCH break statement indentation error
2460
+ - Fixed bug #19897 : Indenting warnings in templates not consistent
2461
+ - Fixed bug #19908 : PEAR MultiLineCondition Does Not Apply elseif
2462
+ - Fixed bug #19913 : Running phpcs in interactive mode causes warnings
2463
+ -- Thanks to Harald Franndorfer for the patch
2464
+ - Fixed bug #19935 : notify-send reports do not vanish in gnome-shell
2465
+ -- Thanks to Christian Weiske for the patch
2466
+ - Fixed bug #19944 : docblock squiz sniff "return void" trips over return in lambda function
2467
+ - Fixed bug #19953 : PSR2 - Spaces before interface name for abstract class
2468
+ - Fixed bug #19956 : phpcs warns for Type Hint missing Resource
2469
+ - Fixed bug #19957 : Does not understand trait method aliasing
2470
+ - Fixed bug #19968 : Permission denied on excluded directory
2471
+ - Fixed bug #19969 : Sniffs with namespace not recognized in reports
2472
+ - Fixed bug #19997 : Class names incorrectly detected as constants
2473
+ </notes >
2474
+ </release >
2330
2475
<release >
2331
2476
<version >
2332
2477
<release >1.4.5</release >
0 commit comments