@@ -2352,27 +2352,40 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2352
2352
- The order that the files are searched is now: .phpcs.xml, phpcs.xml, .phpcs.xml.dist, phpcs.xml.dist
2353
2353
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2354
2354
- Progress output now correctly shows skipped files
2355
- - Progress output now shows 100% when the file list has finished processing (request #1697 )
2355
+ - Progress output now shows 100% when the file list has finished processing (request [ #1697 ] )
2356
2356
- Stopped some IDEs complaining about testing class aliases
2357
2357
- Thanks to [ Vytautas Stankus] [ @svycka ] for the patch
2358
2358
- Squiz.Commenting.InlineComment incorrectly identified comment blocks in some cases, muting some errors
2359
2359
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2360
2360
2361
2361
### Fixed
2362
- - Fixed bug #1512 : PEAR.Functions.FunctionCallSignature enforces spaces when no arguments if required spaces is not 0
2363
- - Fixed bug #1522 : Squiz Arrays.ArrayDeclaration and Strings.ConcatenationSpacing fixers causing parse errors with here/ nowdocs
2364
- - Fixed bug #1570 : Squiz.Arrays.ArrayDeclaration fixer removes comments between array keyword and open parentheses
2365
- - Fixed bug #1604 : File::isReference has problems with some bitwise operators and class property references
2366
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2367
- - Fixed bug #1645 : Squiz.Commenting.InlineComment will fail to fix comments at the end of the file
2368
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2369
- - Fixed bug #1656 : Using the --sniffs argument has a problem with case sensitivity
2370
- - Fixed bug #1657 : Uninitialized string offset: 0 when sniffing CSS
2371
- - Fixed bug #1669 : Temporary expression proceeded by curly brace is detected as function call
2372
- - Fixed bug #1681 : Huge arrays are super slow to scan with Squiz.Arrays.ArrayDeclaration sniff
2373
- - Fixed bug #1694 : Squiz.Arrays.ArrayBracketSpacing is removing some comments during fixing
2374
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2375
- - Fixed bug #1702 : Generic.WhiteSpaceDisallowSpaceIndent fixer bug when line only contains superfluous whitespace
2362
+ - Fixed bug [ #1512 ] : PEAR.Functions.FunctionCallSignature enforces spaces when no arguments if required spaces is not 0
2363
+ - Fixed bug [ #1522 ] : Squiz Arrays.ArrayDeclaration and Strings.ConcatenationSpacing fixers causing parse errors with here/nowdocs
2364
+ - Fixed bug [ #1570 ] : Squiz.Arrays.ArrayDeclaration fixer removes comments between array keyword and open parentheses
2365
+ - Fixed bug [ #1604 ] : File::isReference has problems with some bitwise operators and class property references
2366
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2367
+ - Fixed bug [ #1645 ] : Squiz.Commenting.InlineComment will fail to fix comments at the end of the file
2368
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2369
+ - Fixed bug [ #1656 ] : Using the --sniffs argument has a problem with case sensitivity
2370
+ - Fixed bug [ #1657 ] : Uninitialized string offset: 0 when sniffing CSS
2371
+ - Fixed bug [ #1669 ] : Temporary expression proceeded by curly brace is detected as function call
2372
+ - Fixed bug [ #1681 ] : Huge arrays are super slow to scan with Squiz.Arrays.ArrayDeclaration sniff
2373
+ - Fixed bug [ #1694 ] : Squiz.Arrays.ArrayBracketSpacing is removing some comments during fixing
2374
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2375
+ - Fixed bug [ #1702 ] : Generic.WhiteSpaceDisallowSpaceIndent fixer bug when line only contains superfluous whitespace
2376
+
2377
+ [ #1697 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1697
2378
+ [ #1512 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1512
2379
+ [ #1522 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1522
2380
+ [ #1570 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1570
2381
+ [ #1604 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1604
2382
+ [ #1645 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1645
2383
+ [ #1656 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1656
2384
+ [ #1657 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1657
2385
+ [ #1669 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1669
2386
+ [ #1681 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1681
2387
+ [ #1694 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1694
2388
+ [ #1702 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1702
2376
2389
2377
2390
## [ 3.1.0] - 2017-09-20
2378
2391
### Changed
@@ -2386,7 +2399,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2386
2399
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2387
2400
- A phpcs.xml or phpcs.xml.dist file now takes precedence over the default_standard config setting
2388
2401
- Thanks to [ Björn Fischer] [ @Fischer-Bjoern ] for the patch
2389
- - Both phpcs.xml and phpcs.xml.dist files can now be prefixed with a dot (request #1566 )
2402
+ - Both phpcs.xml and phpcs.xml.dist files can now be prefixed with a dot (request [ #1566 ] )
2390
2403
- The order that the files are searched is: .phpcs.xml, .phpcs.xml.dist, phpcs.xml, phpcs.xml.dist
2391
2404
- The autoloader will now search for files during unit tests runs from the same locations as during normal phpcs runs
2392
2405
- Allows for easier unit testing of custom standards that use helper classes or custom namespaces
@@ -2408,7 +2421,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2408
2421
- Added Generic.Files.OneObjectStructurePerFile sniff to ensure there is a single class/interface/trait per file
2409
2422
- Thanks to [ Mponos George] [ @gmponos ] for the contribution
2410
2423
- Function call sniffs now check variable function names and self/static object creation
2411
- - Specific sniffs are Generic.Functions.FunctionCallArgumentSpacing, PEAR.Functions.FunctionCallSignature, and PSR2.Methods.FunctionCallSignature
2424
+ - Specific sniffs are Generic.Functions.FunctionCallArgumentSpacing, PEAR.Functions.FunctionCallSignature, and PSR2.Methods.FunctionCallSignature
2412
2425
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
2413
2426
- Generic.Files.LineLength can now be configured to ignore all comment lines, no matter their length
2414
2427
- Set the ignoreComments property to TRUE (default is FALSE) in your ruleset.xml file to enable this
@@ -2437,17 +2450,28 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2437
2450
- Thanks to [ Martin Hujer] [ @mhujer ] for the patch
2438
2451
2439
2452
### Fixed
2440
- - Fixed bug #1550 : Squiz.Commenting.FunctionComment false positive when function contains closure
2441
- - Fixed bug #1577 : Generic.InlineControlStructureSniff breaks with a comment between body and condition in do while loops
2442
- - Fixed bug #1581 : Sniffs not loaded when one-standard directories are being registered in installed_paths
2443
- - Fixed bug #1591 : Autoloader failing to load arbitrary files when installed_paths only set via a custom ruleset
2444
- - Fixed bug #1605 : Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment
2445
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2446
- - Fixed bug #1615 : Uncaught RuntimeException when phpcbf fails to fix files
2447
- - Fixed bug #1637 : Generic.WhiteSpaceScopeIndent closure argument indenting incorrect with multi-line strings
2448
- - Fixed bug #1638 : Squiz.WhiteSpace.ScopeClosingBrace closure argument indenting incorrect with multi-line strings
2449
- - Fixed bug #1640 : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
2450
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2453
+ - Fixed bug [ #1550 ] : Squiz.Commenting.FunctionComment false positive when function contains closure
2454
+ - Fixed bug [ #1577 ] : Generic.InlineControlStructureSniff breaks with a comment between body and condition in do while loops
2455
+ - Fixed bug [ #1581 ] : Sniffs not loaded when one-standard directories are being registered in installed_paths
2456
+ - Fixed bug [ #1591 ] : Autoloader failing to load arbitrary files when installed_paths only set via a custom ruleset
2457
+ - Fixed bug [ #1605 ] : Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment
2458
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2459
+ - Fixed bug [ #1615 ] : Uncaught RuntimeException when phpcbf fails to fix files
2460
+ - Fixed bug [ #1637 ] : Generic.WhiteSpaceScopeIndent closure argument indenting incorrect with multi-line strings
2461
+ - Fixed bug [ #1638 ] : Squiz.WhiteSpace.ScopeClosingBrace closure argument indenting incorrect with multi-line strings
2462
+ - Fixed bug [ #1640 ] : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
2463
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2464
+
2465
+ [ #1566 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1566
2466
+ [ #1550 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1550
2467
+ [ #1577 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1577
2468
+ [ #1581 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1581
2469
+ [ #1591 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1591
2470
+ [ #1605 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1605
2471
+ [ #1615 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1615
2472
+ [ #1637 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1637
2473
+ [ #1638 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1638
2474
+ [ #1640 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1640
2451
2475
2452
2476
## [ 3.0.2] - 2017-07-18
2453
2477
### Changed
0 commit comments