@@ -2454,27 +2454,40 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2454
2454
- The order that the files are searched is now: .phpcs.xml, phpcs.xml, .phpcs.xml.dist, phpcs.xml.dist
2455
2455
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2456
2456
- Progress output now correctly shows skipped files
2457
- - Progress output now shows 100% when the file list has finished processing (request #1697)
2457
+ - Progress output now shows 100% when the file list has finished processing (request [ #1697] )
2458
2458
- Stopped some IDEs complaining about testing class aliases
2459
2459
- Thanks to [Vytautas Stankus][@svycka] for the patch
2460
2460
- Squiz.Commenting.InlineComment incorrectly identified comment blocks in some cases, muting some errors
2461
2461
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2462
2462
2463
2463
### Fixed
2464
- - Fixed bug #1512 : PEAR.Functions.FunctionCallSignature enforces spaces when no arguments if required spaces is not 0
2465
- - Fixed bug #1522 : Squiz Arrays.ArrayDeclaration and Strings.ConcatenationSpacing fixers causing parse errors with here/ nowdocs
2466
- - Fixed bug #1570 : Squiz.Arrays.ArrayDeclaration fixer removes comments between array keyword and open parentheses
2467
- - Fixed bug #1604 : File::isReference has problems with some bitwise operators and class property references
2468
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2469
- - Fixed bug #1645 : Squiz.Commenting.InlineComment will fail to fix comments at the end of the file
2470
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2471
- - Fixed bug #1656 : Using the --sniffs argument has a problem with case sensitivity
2472
- - Fixed bug #1657 : Uninitialized string offset: 0 when sniffing CSS
2473
- - Fixed bug #1669 : Temporary expression proceeded by curly brace is detected as function call
2474
- - Fixed bug #1681 : Huge arrays are super slow to scan with Squiz.Arrays.ArrayDeclaration sniff
2475
- - Fixed bug #1694 : Squiz.Arrays.ArrayBracketSpacing is removing some comments during fixing
2476
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2477
- - Fixed bug #1702 : Generic.WhiteSpaceDisallowSpaceIndent fixer bug when line only contains superfluous whitespace
2464
+ - Fixed bug [#1512] : PEAR.Functions.FunctionCallSignature enforces spaces when no arguments if required spaces is not 0
2465
+ - Fixed bug [#1522] : Squiz Arrays.ArrayDeclaration and Strings.ConcatenationSpacing fixers causing parse errors with here/nowdocs
2466
+ - Fixed bug [#1570] : Squiz.Arrays.ArrayDeclaration fixer removes comments between array keyword and open parentheses
2467
+ - Fixed bug [#1604] : File::isReference has problems with some bitwise operators and class property references
2468
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2469
+ - Fixed bug [#1645] : Squiz.Commenting.InlineComment will fail to fix comments at the end of the file
2470
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2471
+ - Fixed bug [#1656] : Using the --sniffs argument has a problem with case sensitivity
2472
+ - Fixed bug [#1657] : Uninitialized string offset: 0 when sniffing CSS
2473
+ - Fixed bug [#1669] : Temporary expression proceeded by curly brace is detected as function call
2474
+ - Fixed bug [#1681] : Huge arrays are super slow to scan with Squiz.Arrays.ArrayDeclaration sniff
2475
+ - Fixed bug [#1694] : Squiz.Arrays.ArrayBracketSpacing is removing some comments during fixing
2476
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2477
+ - Fixed bug [#1702] : Generic.WhiteSpaceDisallowSpaceIndent fixer bug when line only contains superfluous whitespace
2478
+
2479
+ [#1697]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1697
2480
+ [#1512]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1512
2481
+ [#1522]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1522
2482
+ [#1570]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1570
2483
+ [#1604]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1604
2484
+ [#1645]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1645
2485
+ [#1656]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1656
2486
+ [#1657]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1657
2487
+ [#1669]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1669
2488
+ [#1681]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1681
2489
+ [#1694]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1694
2490
+ [#1702]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1702
2478
2491
2479
2492
## [3.1.0] - 2017-09-20
2480
2493
### Changed
@@ -2488,7 +2501,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2488
2501
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2489
2502
- A phpcs.xml or phpcs.xml.dist file now takes precedence over the default_standard config setting
2490
2503
- Thanks to [Björn Fischer][@Fischer-Bjoern] for the patch
2491
- - Both phpcs.xml and phpcs.xml.dist files can now be prefixed with a dot (request #1566)
2504
+ - Both phpcs.xml and phpcs.xml.dist files can now be prefixed with a dot (request [ #1566] )
2492
2505
- The order that the files are searched is: .phpcs.xml, .phpcs.xml.dist, phpcs.xml, phpcs.xml.dist
2493
2506
- The autoloader will now search for files during unit tests runs from the same locations as during normal phpcs runs
2494
2507
- Allows for easier unit testing of custom standards that use helper classes or custom namespaces
@@ -2510,7 +2523,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2510
2523
- Added Generic.Files.OneObjectStructurePerFile sniff to ensure there is a single class/interface/trait per file
2511
2524
- Thanks to [Mponos George][@gmponos] for the contribution
2512
2525
- Function call sniffs now check variable function names and self/static object creation
2513
- - Specific sniffs are Generic.Functions.FunctionCallArgumentSpacing, PEAR.Functions.FunctionCallSignature, and PSR2.Methods.FunctionCallSignature
2526
+ - Specific sniffs are Generic.Functions.FunctionCallArgumentSpacing, PEAR.Functions.FunctionCallSignature, and PSR2.Methods.FunctionCallSignature
2514
2527
- Thanks to [Michał Bundyra][@michalbundyra] for the patch
2515
2528
- Generic.Files.LineLength can now be configured to ignore all comment lines, no matter their length
2516
2529
- Set the ignoreComments property to TRUE (default is FALSE) in your ruleset.xml file to enable this
@@ -2539,17 +2552,28 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2539
2552
- Thanks to [Martin Hujer][@mhujer] for the patch
2540
2553
2541
2554
### Fixed
2542
- - Fixed bug #1550 : Squiz.Commenting.FunctionComment false positive when function contains closure
2543
- - Fixed bug #1577 : Generic.InlineControlStructureSniff breaks with a comment between body and condition in do while loops
2544
- - Fixed bug #1581 : Sniffs not loaded when one-standard directories are being registered in installed_paths
2545
- - Fixed bug #1591 : Autoloader failing to load arbitrary files when installed_paths only set via a custom ruleset
2546
- - Fixed bug #1605 : Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment
2547
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2548
- - Fixed bug #1615 : Uncaught RuntimeException when phpcbf fails to fix files
2549
- - Fixed bug #1637 : Generic.WhiteSpaceScopeIndent closure argument indenting incorrect with multi-line strings
2550
- - Fixed bug #1638 : Squiz.WhiteSpace.ScopeClosingBrace closure argument indenting incorrect with multi-line strings
2551
- - Fixed bug #1640 : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
2552
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2555
+ - Fixed bug [#1550] : Squiz.Commenting.FunctionComment false positive when function contains closure
2556
+ - Fixed bug [#1577] : Generic.InlineControlStructureSniff breaks with a comment between body and condition in do while loops
2557
+ - Fixed bug [#1581] : Sniffs not loaded when one-standard directories are being registered in installed_paths
2558
+ - Fixed bug [#1591] : Autoloader failing to load arbitrary files when installed_paths only set via a custom ruleset
2559
+ - Fixed bug [#1605] : Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment
2560
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2561
+ - Fixed bug [#1615] : Uncaught RuntimeException when phpcbf fails to fix files
2562
+ - Fixed bug [#1637] : Generic.WhiteSpaceScopeIndent closure argument indenting incorrect with multi-line strings
2563
+ - Fixed bug [#1638] : Squiz.WhiteSpace.ScopeClosingBrace closure argument indenting incorrect with multi-line strings
2564
+ - Fixed bug [#1640] : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
2565
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2566
+
2567
+ [#1566]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1566
2568
+ [#1550]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1550
2569
+ [#1577]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1577
2570
+ [#1581]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1581
2571
+ [#1591]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1591
2572
+ [#1605]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1605
2573
+ [#1615]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1615
2574
+ [#1637]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1637
2575
+ [#1638]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1638
2576
+ [#1640]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1640
2553
2577
2554
2578
## [3.0.2] - 2017-07-18
2555
2579
### Changed
0 commit comments