@@ -2649,20 +2649,23 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2649
2649
- Includes all changes from the 2.8.1 release
2650
2650
2651
2651
### Fixed
2652
- - Fixed bug #1333 : The new autoloader breaks some frameworks with custom autoloaders
2653
- - Fixed bug #1334 : Undefined offset when explaining standard with custom sniffs
2652
+ - Fixed bug [ #1333 ] : The new autoloader breaks some frameworks with custom autoloaders
2653
+ - Fixed bug [ #1334 ] : Undefined offset when explaining standard with custom sniffs
2654
+
2655
+ [ #1333 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1333
2656
+ [ #1334 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1334
2654
2657
2655
2658
## [ 3.0.0RC3] - 2017-02-02
2656
2659
### Changed
2657
2660
- Added support for ES6 class declarations
2658
2661
- Previously, these class were tokenized as JS objects but are now tokenized as normal T_CLASS structures
2659
2662
- Added support for ES6 method declarations, where the "function" keyword is not used
2660
- - Previously, these methods were tokenized as JS objects (fixes bug #1251 )
2663
+ - Previously, these methods were tokenized as JS objects (fixes bug [ #1251 ] )
2661
2664
- The name of the ES6 method is now assigned the T_FUNCTION keyword and treated like a normal function
2662
- - Custom sniffs that support JS and listen for T_FUNCTION tokens can't assume the token represents the word "function"
2665
+ - Custom sniffs that support JS and listen for T_FUNCTION tokens can't assume the token represents the word "function"
2663
2666
- Check the contents of the token first, or use $phpcsFile->getDeclarationName($stackPtr) if you just want its name
2664
2667
- There is no change for custom sniffs that only check PHP code
2665
- - PHPCBF exit codes have been changed so they are now more useful (request #1270 )
2668
+ - PHPCBF exit codes have been changed so they are now more useful (request [ #1270 ] )
2666
2669
- Exit code 0 is now used to indicate that no fixable errors were found, and so nothing was fixed
2667
2670
- Exit code 1 is now used to indicate that all fixable errors were fixed correctly
2668
2671
- Exit code 2 is now used to indicate that PHPCBF failed to fix some of the fixable errors it found
@@ -2674,26 +2677,35 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2674
2677
- Fixed an issue where excluding a file using a @codingStandardsIgnoreFile comment would produce errors
2675
2678
- For PHPCS, it would show empty files being processed
2676
2679
- For PHPCBF, it would produce a PHP error
2677
- - Fixed bug #1233 : Can't set config data inside ruleset.xml file
2678
- - Fixed bug #1241 : CodeSniffer.conf not working with 3.x PHAR file
2680
+ - Fixed bug [ #1233 ] : Can't set config data inside ruleset.xml file
2681
+ - Fixed bug [ #1241 ] : CodeSniffer.conf not working with 3.x PHAR file
2682
+
2683
+ [ #1233 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1233
2684
+ [ #1241 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1241
2685
+ [ #1251 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1251
2686
+ [ #1270 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1270
2679
2687
2680
2688
## [ 3.0.0RC2] - 2016-11-30
2681
2689
### Changed
2682
2690
- Made the Runner class easier to use with wrapper scripts
2683
- - Full usage information is no longer printed when a usage error is encountered (request #1186 )
2691
+ - Full usage information is no longer printed when a usage error is encountered (request [ #1186 ] )
2684
2692
- Makes it a lot easier to find and read the error message that was printed
2685
2693
- Includes all changes from the 2.7.1 release
2686
2694
2687
2695
### Fixed
2688
2696
- Fixed an undefined var name error that could be produced while running PHPCBF
2689
- - Fixed bug #1167 : 3.0.0RC1 PHAR does not work with PEAR standard
2690
- - Fixed bug #1208 : Excluding files doesn't work when using STDIN with a filename specified
2697
+ - Fixed bug [ #1167 ] : 3.0.0RC1 PHAR does not work with PEAR standard
2698
+ - Fixed bug [ #1208 ] : Excluding files doesn't work when using STDIN with a filename specified
2699
+
2700
+ [ #1167 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1167
2701
+ [ #1186 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1186
2702
+ [ #1208 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1208
2691
2703
2692
2704
## [ 3.0.0RC1] - 2016-09-02
2693
2705
### Changed
2694
2706
- Progress output now shows E and W in green when a file has fixable errors or warnings
2695
2707
- Only supported if colors are enabled
2696
- - PHPCBF no longer produces verbose output by default (request #699 )
2708
+ - PHPCBF no longer produces verbose output by default (request [ #699 ] )
2697
2709
- Use the -v command line argument to show verbose fixing output
2698
2710
- Use the -q command line argument to disable verbose information if enabled by default
2699
2711
- PHPBF now prints a summary report after fixing files
@@ -2708,24 +2720,26 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2708
2720
### Fixed
2709
2721
- Fixed shell error appearing on some systems when trying to find executable paths
2710
2722
2723
+ [ #699 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/699
2724
+
2711
2725
## [ 3.0.0a1] - 2016-07-20
2712
2726
### Changed
2713
2727
- Min PHP version increased from 5.1.2 to 5.4.0
2714
- - Added optional caching of results between runs (request #530 )
2728
+ - Added optional caching of results between runs (request [ #530 ] )
2715
2729
- Enable the cache by using the --cache command line argument
2716
2730
- If you want the cache file written somewhere specific, use --cache=/path/to/cacheFile
2717
2731
- Use the command "phpcs --config-set cache true" to turn caching on by default
2718
2732
- Use the --no-cache command line argument to disable caching if it is being turned on automatically
2719
- - Add support for checking file in parallel (request #421 )
2733
+ - Add support for checking file in parallel (request [ #421 ] )
2720
2734
- Tell PHPCS how many files to check at once using the --parallel command line argument
2721
2735
- To check 100 files at once, using --parallel=100
2722
2736
- To disable parallel checking if it is being turned on automatically, use --parallel=1
2723
2737
- Requires PHP to be compiled with the PCNTL package
2724
- - The default encoding has been changed from iso-8859-1 to utf-8 (request #760 )
2738
+ - The default encoding has been changed from iso-8859-1 to utf-8 (request [ #760 ] )
2725
2739
- The --encoding command line argument still works, but you no longer have to set it to process files as utf-8
2726
2740
- If encoding is being set to utf-8 in a ruleset or on the CLI, it can be safely removed
2727
2741
- If the iconv PHP extension is not installed, standard non-multibyte aware functions will be used
2728
- - Added a new "code" report type to show a code snippet for each error (request #419 )
2742
+ - Added a new "code" report type to show a code snippet for each error (request [ #419 ] )
2729
2743
- The line containing the error is printed, along with 2 lines above and below it to show context
2730
2744
- The location of the errors is underlined in the code snippet if you also use --colors
2731
2745
- Use --report=code to generate this report
@@ -2738,7 +2752,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2738
2752
- Added support for only checking files that have been locally modified or added in a git repo
2739
2753
- Use --filter=gitmodified to check these files
2740
2754
- You still need to give PHPCS a list of files or directories in which to check
2741
- - Added automatic discovery of executable paths (request #571 )
2755
+ - Added automatic discovery of executable paths (request [ #571 ] )
2742
2756
- Thanks to [ Sergei Morozov] [ @morozov ] for the patch
2743
2757
- You must now pass "-" on the command line to have PHPCS wait for STDIN
2744
2758
- E.g., phpcs --standard=PSR2 -
@@ -2748,32 +2762,32 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2748
2762
- This should stop bugs inside sniffs causing infinite loops
2749
2763
- Also stops invalid reports being produced as errors don't print to the screen directly
2750
2764
- Sniff codes are no longer optional
2751
- - If a sniff throws and error or a warning, it must specify an internal code for that message
2765
+ - If a sniff throws an error or a warning, it must specify an internal code for that message
2752
2766
- The installed_paths config setting can now point directly to a standard
2753
2767
- Previously, it had to always point to the directory in which the standard lives
2754
2768
- Multiple reports can now be specified using the --report command line argument
2755
2769
- Report types are separated by commas
2756
2770
- E.g., --report=full,summary,info
2757
2771
- Previously, you had to use one argument for each report such as --report=full --report=summary --report=info
2758
- - You can now set the severity, message type, and exclude patterns for and entire sniff, category, or standard
2772
+ - You can now set the severity, message type, and exclude patterns for an entire sniff, category, or standard
2759
2773
- Previously, this was only available for a single message
2760
2774
- You can now include a single sniff code in a ruleset instead of having to include an entire sniff
2761
2775
- Including a sniff code will automatically exclude all other messages from that sniff
2762
2776
- If the sniff is already included by an imported standard, set the sniff severity to 0 and include the specific message you want
2763
2777
- PHPCBF no longer uses patch
2764
2778
- Files are now always overwritten
2765
2779
- The --no-patch option has been removed
2766
- - Added a --basepath option to strip a directory from the front of file paths in output (request #470 )
2780
+ - Added a --basepath option to strip a directory from the front of file paths in output (request [ #470 ] )
2767
2781
- The basepath is absolute or relative to the current directory
2768
2782
- E.g., to output paths relative to current dir in reports, use --basepath=.
2769
- - Ignore rules are now checked when using STDIN (request #733 )
2770
- - Added an include-pattern tag to rulesets to include a sniff for specific files and folders only (request #656 )
2783
+ - Ignore rules are now checked when using STDIN (request [ #733 ] )
2784
+ - Added an include-pattern tag to rulesets to include a sniff for specific files and folders only (request [ #656 ] )
2771
2785
- This is the exact opposite of the exclude-pattern tag
2772
2786
- This option is only usable within sniffs, not globally like exclude-patterns are
2773
2787
- Added a new -m option to stop error messages from being recorded, which saves a lot of memory
2774
2788
- PHPCBF always uses this setting to reduce memory as it never outputs error messages
2775
2789
- Setting the $recordErrors member var inside custom report classes is no longer supported (use -m instead)
2776
- - Exit code 2 is now used to indicate fixable errors were found (request #930 )
2790
+ - Exit code 2 is now used to indicate fixable errors were found (request [ #930 ] )
2777
2791
- Exit code 3 is now used for general script execution errors
2778
2792
- Exit code 1 is used to indicate that coding standard errors were found, but none are fixable
2779
2793
- Exit code 0 is unchanged and continues to mean no coding standard errors found
@@ -2785,6 +2799,16 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2785
2799
- The included SVN pre-commit hook has been removed
2786
2800
- Hooks for version control systems will no longer be maintained within the PHPCS project
2787
2801
2802
+ [ #419 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/419
2803
+ [ #421 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/421
2804
+ [ #470 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/470
2805
+ [ #530 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/530
2806
+ [ #571 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/571
2807
+ [ #656 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/656
2808
+ [ #733 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/733
2809
+ [ #760 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/760
2810
+ [ #930 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/930
2811
+
2788
2812
## [ 2.9.0] - 2017-05-04
2789
2813
### Changed
2790
2814
- Added Generic.Debug.ESLint sniff to run ESLint over JS files and report errors
0 commit comments