@@ -2751,20 +2751,23 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2751
2751
- Includes all changes from the 2.8.1 release
2752
2752
2753
2753
### Fixed
2754
- - Fixed bug #1333 : The new autoloader breaks some frameworks with custom autoloaders
2755
- - Fixed bug #1334 : Undefined offset when explaining standard with custom sniffs
2754
+ - Fixed bug [#1333] : The new autoloader breaks some frameworks with custom autoloaders
2755
+ - Fixed bug [#1334] : Undefined offset when explaining standard with custom sniffs
2756
+
2757
+ [#1333]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1333
2758
+ [#1334]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1334
2756
2759
2757
2760
## [3.0.0RC3] - 2017-02-02
2758
2761
### Changed
2759
2762
- Added support for ES6 class declarations
2760
2763
- Previously, these class were tokenized as JS objects but are now tokenized as normal T_CLASS structures
2761
2764
- Added support for ES6 method declarations, where the "function" keyword is not used
2762
- - Previously, these methods were tokenized as JS objects (fixes bug #1251)
2765
+ - Previously, these methods were tokenized as JS objects (fixes bug [ #1251] )
2763
2766
- The name of the ES6 method is now assigned the T_FUNCTION keyword and treated like a normal function
2764
- - Custom sniffs that support JS and listen for T_FUNCTION tokens can't assume the token represents the word "function"
2767
+ - Custom sniffs that support JS and listen for T_FUNCTION tokens can't assume the token represents the word "function"
2765
2768
- Check the contents of the token first, or use $phpcsFile->getDeclarationName($stackPtr) if you just want its name
2766
2769
- There is no change for custom sniffs that only check PHP code
2767
- - PHPCBF exit codes have been changed so they are now more useful (request #1270)
2770
+ - PHPCBF exit codes have been changed so they are now more useful (request [ #1270] )
2768
2771
- Exit code 0 is now used to indicate that no fixable errors were found, and so nothing was fixed
2769
2772
- Exit code 1 is now used to indicate that all fixable errors were fixed correctly
2770
2773
- Exit code 2 is now used to indicate that PHPCBF failed to fix some of the fixable errors it found
@@ -2776,26 +2779,35 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2776
2779
- Fixed an issue where excluding a file using a @codingStandardsIgnoreFile comment would produce errors
2777
2780
- For PHPCS, it would show empty files being processed
2778
2781
- For PHPCBF, it would produce a PHP error
2779
- - Fixed bug #1233 : Can't set config data inside ruleset.xml file
2780
- - Fixed bug #1241 : CodeSniffer.conf not working with 3.x PHAR file
2782
+ - Fixed bug [#1233] : Can't set config data inside ruleset.xml file
2783
+ - Fixed bug [#1241] : CodeSniffer.conf not working with 3.x PHAR file
2784
+
2785
+ [#1233]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1233
2786
+ [#1241]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1241
2787
+ [#1251]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1251
2788
+ [#1270]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1270
2781
2789
2782
2790
## [3.0.0RC2] - 2016-11-30
2783
2791
### Changed
2784
2792
- Made the Runner class easier to use with wrapper scripts
2785
- - Full usage information is no longer printed when a usage error is encountered (request #1186)
2793
+ - Full usage information is no longer printed when a usage error is encountered (request [ #1186] )
2786
2794
- Makes it a lot easier to find and read the error message that was printed
2787
2795
- Includes all changes from the 2.7.1 release
2788
2796
2789
2797
### Fixed
2790
2798
- Fixed an undefined var name error that could be produced while running PHPCBF
2791
- - Fixed bug #1167 : 3.0.0RC1 PHAR does not work with PEAR standard
2792
- - Fixed bug #1208 : Excluding files doesn't work when using STDIN with a filename specified
2799
+ - Fixed bug [#1167] : 3.0.0RC1 PHAR does not work with PEAR standard
2800
+ - Fixed bug [#1208] : Excluding files doesn't work when using STDIN with a filename specified
2801
+
2802
+ [#1167]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1167
2803
+ [#1186]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1186
2804
+ [#1208]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1208
2793
2805
2794
2806
## [3.0.0RC1] - 2016-09-02
2795
2807
### Changed
2796
2808
- Progress output now shows E and W in green when a file has fixable errors or warnings
2797
2809
- Only supported if colors are enabled
2798
- - PHPCBF no longer produces verbose output by default (request #699)
2810
+ - PHPCBF no longer produces verbose output by default (request [ #699] )
2799
2811
- Use the -v command line argument to show verbose fixing output
2800
2812
- Use the -q command line argument to disable verbose information if enabled by default
2801
2813
- PHPBF now prints a summary report after fixing files
@@ -2810,24 +2822,26 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2810
2822
### Fixed
2811
2823
- Fixed shell error appearing on some systems when trying to find executable paths
2812
2824
2825
+ [#699]: https://github.com/squizlabs/PHP_CodeSniffer/issues/699
2826
+
2813
2827
## [3.0.0a1] - 2016-07-20
2814
2828
### Changed
2815
2829
- Min PHP version increased from 5.1.2 to 5.4.0
2816
- - Added optional caching of results between runs (request #530)
2830
+ - Added optional caching of results between runs (request [ #530] )
2817
2831
- Enable the cache by using the --cache command line argument
2818
2832
- If you want the cache file written somewhere specific, use --cache=/path/to/cacheFile
2819
2833
- Use the command "phpcs --config-set cache true" to turn caching on by default
2820
2834
- Use the --no-cache command line argument to disable caching if it is being turned on automatically
2821
- - Add support for checking file in parallel (request #421)
2835
+ - Add support for checking file in parallel (request [ #421] )
2822
2836
- Tell PHPCS how many files to check at once using the --parallel command line argument
2823
2837
- To check 100 files at once, using --parallel=100
2824
2838
- To disable parallel checking if it is being turned on automatically, use --parallel=1
2825
2839
- Requires PHP to be compiled with the PCNTL package
2826
- - The default encoding has been changed from iso-8859-1 to utf-8 (request #760)
2840
+ - The default encoding has been changed from iso-8859-1 to utf-8 (request [ #760] )
2827
2841
- The --encoding command line argument still works, but you no longer have to set it to process files as utf-8
2828
2842
- If encoding is being set to utf-8 in a ruleset or on the CLI, it can be safely removed
2829
2843
- If the iconv PHP extension is not installed, standard non-multibyte aware functions will be used
2830
- - Added a new "code" report type to show a code snippet for each error (request #419)
2844
+ - Added a new "code" report type to show a code snippet for each error (request [ #419] )
2831
2845
- The line containing the error is printed, along with 2 lines above and below it to show context
2832
2846
- The location of the errors is underlined in the code snippet if you also use --colors
2833
2847
- Use --report=code to generate this report
@@ -2840,7 +2854,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2840
2854
- Added support for only checking files that have been locally modified or added in a git repo
2841
2855
- Use --filter=gitmodified to check these files
2842
2856
- You still need to give PHPCS a list of files or directories in which to check
2843
- - Added automatic discovery of executable paths (request #571)
2857
+ - Added automatic discovery of executable paths (request [ #571] )
2844
2858
- Thanks to [Sergei Morozov][@morozov] for the patch
2845
2859
- You must now pass "-" on the command line to have PHPCS wait for STDIN
2846
2860
- E.g., phpcs --standard=PSR2 -
@@ -2850,32 +2864,32 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2850
2864
- This should stop bugs inside sniffs causing infinite loops
2851
2865
- Also stops invalid reports being produced as errors don't print to the screen directly
2852
2866
- Sniff codes are no longer optional
2853
- - If a sniff throws and error or a warning, it must specify an internal code for that message
2867
+ - If a sniff throws an error or a warning, it must specify an internal code for that message
2854
2868
- The installed_paths config setting can now point directly to a standard
2855
2869
- Previously, it had to always point to the directory in which the standard lives
2856
2870
- Multiple reports can now be specified using the --report command line argument
2857
2871
- Report types are separated by commas
2858
2872
- E.g., --report=full,summary,info
2859
2873
- Previously, you had to use one argument for each report such as --report=full --report=summary --report=info
2860
- - You can now set the severity, message type, and exclude patterns for and entire sniff, category, or standard
2874
+ - You can now set the severity, message type, and exclude patterns for an entire sniff, category, or standard
2861
2875
- Previously, this was only available for a single message
2862
2876
- You can now include a single sniff code in a ruleset instead of having to include an entire sniff
2863
2877
- Including a sniff code will automatically exclude all other messages from that sniff
2864
2878
- If the sniff is already included by an imported standard, set the sniff severity to 0 and include the specific message you want
2865
2879
- PHPCBF no longer uses patch
2866
2880
- Files are now always overwritten
2867
2881
- The --no-patch option has been removed
2868
- - Added a --basepath option to strip a directory from the front of file paths in output (request #470)
2882
+ - Added a --basepath option to strip a directory from the front of file paths in output (request [ #470] )
2869
2883
- The basepath is absolute or relative to the current directory
2870
2884
- E.g., to output paths relative to current dir in reports, use --basepath=.
2871
- - Ignore rules are now checked when using STDIN (request #733)
2872
- - Added an include-pattern tag to rulesets to include a sniff for specific files and folders only (request #656)
2885
+ - Ignore rules are now checked when using STDIN (request [ #733] )
2886
+ - Added an include-pattern tag to rulesets to include a sniff for specific files and folders only (request [ #656] )
2873
2887
- This is the exact opposite of the exclude-pattern tag
2874
2888
- This option is only usable within sniffs, not globally like exclude-patterns are
2875
2889
- Added a new -m option to stop error messages from being recorded, which saves a lot of memory
2876
2890
- PHPCBF always uses this setting to reduce memory as it never outputs error messages
2877
2891
- Setting the $recordErrors member var inside custom report classes is no longer supported (use -m instead)
2878
- - Exit code 2 is now used to indicate fixable errors were found (request #930)
2892
+ - Exit code 2 is now used to indicate fixable errors were found (request [ #930] )
2879
2893
- Exit code 3 is now used for general script execution errors
2880
2894
- Exit code 1 is used to indicate that coding standard errors were found, but none are fixable
2881
2895
- Exit code 0 is unchanged and continues to mean no coding standard errors found
@@ -2887,6 +2901,16 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2887
2901
- The included SVN pre-commit hook has been removed
2888
2902
- Hooks for version control systems will no longer be maintained within the PHPCS project
2889
2903
2904
+ [#419]: https://github.com/squizlabs/PHP_CodeSniffer/issues/419
2905
+ [#421]: https://github.com/squizlabs/PHP_CodeSniffer/issues/421
2906
+ [#470]: https://github.com/squizlabs/PHP_CodeSniffer/issues/470
2907
+ [#530]: https://github.com/squizlabs/PHP_CodeSniffer/issues/530
2908
+ [#571]: https://github.com/squizlabs/PHP_CodeSniffer/pull/571
2909
+ [#656]: https://github.com/squizlabs/PHP_CodeSniffer/issues/656
2910
+ [#733]: https://github.com/squizlabs/PHP_CodeSniffer/issues/733
2911
+ [#760]: https://github.com/squizlabs/PHP_CodeSniffer/issues/760
2912
+ [#930]: https://github.com/squizlabs/PHP_CodeSniffer/issues/930
2913
+
2890
2914
## [2.9.0] - 2017-05-04
2891
2915
### Changed
2892
2916
- Added Generic.Debug.ESLint sniff to run ESLint over JS files and report errors
0 commit comments