@@ -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 >2017-10-17 </date >
18
- <time >09:38 :00</time >
17
+ <date >2017-12-13 </date >
18
+ <time >08:33 :00</time >
19
19
<version >
20
20
<release >3.2.0</release >
21
21
<api >3.2.0</api >
@@ -1700,6 +1700,136 @@ http://pear.php.net/dtd/package-2.0.xsd">
1700
1700
</filelist >
1701
1701
</phprelease >
1702
1702
<changelog >
1703
+ <release >
1704
+ <version >
1705
+ <release >3.2.0</release >
1706
+ <api >3.2.0</api >
1707
+ </version >
1708
+ <stability >
1709
+ <release >stable</release >
1710
+ <api >stable</api >
1711
+ </stability >
1712
+ <date >2017-12-13</date >
1713
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1714
+ <notes >
1715
+ - This release deprecates the @codingStandards comment syntax used for sending commands to PHP_CodeSniffer
1716
+ -- The existing syntax will continue to work in all version 3 releases, but will be removed in version 4
1717
+ -- The comment formats have been replaced by a shorter syntax:
1718
+ --- @codingStandardsIgnoreFile becomes phpcs:ignoreFile
1719
+ --- @codingStandardsIgnoreStart becomes phpcs:disable
1720
+ --- @codingStandardsIgnoreEnd becomes phpcs:enable
1721
+ --- @codingStandardsIgnoreLine becomes phpcs:ignore
1722
+ --- @codingStandardsChangeSetting becomes phpcs:set
1723
+ -- The new syntax allows for additional developer comments to be added after a -- separator
1724
+ --- This is useful for describing why a code block is being ignored, or why a setting is being changed
1725
+ --- E.g., phpcs:disable -- This code block must be left as-is.
1726
+ -- Comments using the new syntax are assigned new comment token types to allow them to be detected:
1727
+ --- phpcs:ignoreFile has the token T_PHPCS_IGNORE_FILE
1728
+ --- phpcs:disable has the token T_PHPCS_DISABLE
1729
+ --- phpcs:enable has the token T_PHPCS_ENABLE
1730
+ --- phpcs:ignore has the token T_PHPCS_IGNORE
1731
+ --- phpcs:set has the token T_PHPCS_SET
1732
+
1733
+ - The phpcs:disable and phpcs:ignore comments can now selectively ignore specific sniffs (request #604)
1734
+ -- E.g., phpcs:disable Generic.Commenting.Todo.Found for a specific message
1735
+ -- E.g., phpcs:disable Generic.Commenting.Todo for a whole sniff
1736
+ -- E.g., phpcs:disable Generic.Commenting for a whole category of sniffs
1737
+ -- E.g., phpcs:disable Generic for a whole standard
1738
+ -- Multiple sniff codes can be specified by comma separating them
1739
+ --- E.g., phpcs:disable Generic.Commenting.Todo,PSR1.Files
1740
+ - @codingStandardsIgnoreLine comments now only ignore the following line if they are on a line by themselves
1741
+ -- If they are at the end of an existing line, they will only ignore the line they are on
1742
+ -- Stops some lines from accidentally being ignored
1743
+ -- Same rule applies for the new phpcs:ignore comment syntax
1744
+ - PSR1.Files.SideEffects now respects the new phpcs:disable comment syntax
1745
+ -- The sniff will no longer check any code that is between phpcs:disable and phpcs:enable comments
1746
+ -- The sniff does not support phpcs:ignore; you must wrap code structures with disable/enable comments
1747
+ -- Previously, there was no way to have this sniff ignore parts of a file
1748
+ - Fixed a problem where PHPCS would sometimes hang waiting for STDIN, or read incomplete versions of large files
1749
+ -- Thanks to Arne Jørgensen for the patch
1750
+ - Array properties specified in ruleset files now have their keys and values trimmed
1751
+ -- This saves having to do this in individual sniffs and stops errors introduced by whitespace in rulesets
1752
+ -- Thanks to Juliette Reinders Folmer for the patch
1753
+ - Added phpcs.xsd to allow validation of ruleset XML files
1754
+ -- Thanks to Renaat De Muynck for the contribution
1755
+ - File paths specified using --stdin-path can now point to fake file locations (request #1488)
1756
+ -- Previously, STDIN files using fake file paths were excluded from checking
1757
+ - Setting an empty basepath (--basepath=) on the CLI will now clear a basepath set directly in a ruleset
1758
+ -- Thanks to Xaver Loppenstedt for the patch
1759
+ - Ignore patterns are now checked on symlink target paths instead of symlink source paths
1760
+ -- Restores previous behaviour of this feature
1761
+ - Metrics were being double counted when multiple sniffs were recording the same metric
1762
+ - Added support for bash process substitution
1763
+ -- Thanks to Scott Dutton for the contribution
1764
+ - Files included in the cache file code hash are now sorted to aid in cache file reuse across servers
1765
+ - Windows BAT files can now be used outside a PEAR install
1766
+ -- You must have the path to PHP set in your PATH environment variable
1767
+ -- Thanks to Joris Debonnet for the patch
1768
+ - The JS unsigned right shift assignment operator is now properly classified as an assignment operator
1769
+ -- Thanks to Juliette Reinders Folmer for the patch
1770
+ - The AbstractVariableSniff abstract sniff now supports anonymous classes and nested functions
1771
+ -- Also fixes an issue with Squiz.Scope.MemberVarScope where member vars of anonymous classes were not being checked
1772
+ - Added AbstractArraySniff to make it easier to create sniffs that check array formatting
1773
+ -- Allows for checking of single and multi line arrays easily
1774
+ -- Provides a parsed structure of the array including positions of keys, values, and double arrows
1775
+ - Added Generic.Arrays.ArrayIndent to enforce a single tab stop indent for array keys in multi-line arrays
1776
+ -- Also ensures the close brace is on a new line and indented to the same level as the original statement
1777
+ -- Allows for the indent size to be set using an "indent" property of the sniff
1778
+ - Added Generic.PHP.DiscourageGoto to warn about the use of the GOTO language construct
1779
+ -- Thanks to Juliette Reinders Folmer for the contribution
1780
+ - Generic.Debug.ClosureLinter was not running the gjslint command
1781
+ -- Thanks to Michał Bundyra for the patch
1782
+ - Generic.WhiteSpace.DisallowSpaceIndent now fixes space indents in multi-line block comments
1783
+ -- Thanks to Juliette Reinders Folmer for the patch
1784
+ - Generic.WhiteSpace.DisallowSpaceIndent now fixes mixed space/tab indents more accurately
1785
+ -- Thanks to Juliette Reinders Folmer for the patch
1786
+ - Generic.WhiteSpace.DisallowTabIndent now fixes tab indents in multi-line block comments
1787
+ -- Thanks to Juliette Reinders Folmer for the patch
1788
+ - PEAR.Functions.FunctionDeclaration no longer errors when a function declaration is the first content in a JS file
1789
+ -- Thanks to Juliette Reinders Folmer for the patch
1790
+ - PEAR.Functions.FunctionCallSignature now requires the function name to be indented to an exact tab stop
1791
+ -- If the function name is not the start of the statement, the opening statement must be indented correctly instead
1792
+ -- Added a new fixable error code PEAR.Functions.FunctionCallSignature.OpeningIndent for this error
1793
+ - Squiz.Functions.FunctionDeclarationArgumentSpacing is no longer confused about comments in function declarations
1794
+ -- Thanks to Juliette Reinders Folmer for the patch
1795
+ - Squiz.PHP.NonExecutableCode error messages now indicate which line the code block ending is on
1796
+ -- Makes it easier to identify where the code block exited or returned
1797
+ -- Thanks to Juliette Reinders Folmer for the patch
1798
+ - Squiz.Commenting.FunctionComment now supports nullable type hints
1799
+ - Squiz.Commenting.FunctionCommentThrowTag no longer assigns throw tags inside anon classes to the enclosing function
1800
+ - Squiz.WhiteSpace.SemicolonSpacing now ignores semicolons used for empty statements inside FOR conditions
1801
+ -- Thanks to Juliette Reinders Folmer for the patch
1802
+ - Squiz.ControlStructures.ControlSignature now allows configuring the number of spaces before the colon in alternative syntax
1803
+ -- Override the 'requiredSpacesBeforeColon' setting in a ruleset.xml file to change
1804
+ -- Default remains at 1
1805
+ -- Thanks to Nikola Kovacs for the patch
1806
+ - The Squiz standard now ensures array keys are indented 4 spaces from the main statement
1807
+ -- Previously, this standard aligned keys 1 space from the start of the array keyword
1808
+ - The Squiz standard now ensures array end braces are aligned with the main statement
1809
+ -- Previously, this standard aligned the close brace with the start of the array keyword
1810
+ - The standard for PHP_CodeSniffer itself now enforces short array syntax
1811
+ - The standard for PHP_CodeSniffer itself now uses the Generic.Arrays/ArrayIndent sniff rules
1812
+ - Improved fixer conflicts and syntax error handling for a number of sniffs
1813
+ -- Thanks to Juliette Reinders Folmer for the patch
1814
+ - Fixed bug #1462 : Error processing cyrillic strings in Tokenizer
1815
+ - Fixed bug #1573 : Squiz.WhiteSpace.LanguageConstructSpacing does not properly check for tabs and newlines
1816
+ -- Thanks to Michał Bundyra for the patch
1817
+ - Fixed bug #1590 : InlineControlStructure CBF issue while adding braces to an if thats returning a nested function
1818
+ - Fixed bug #1718 : Unclosed strings at EOF sometimes tokenized as T_WHITESPACE by the JS tokenizer
1819
+ - Fixed bug #1731 : Directory exclusions do not work as expected when a single file name is passed to phpcs
1820
+ - Fixed bug #1737 : Squiz.CSS.EmptyStyleDefinition sees comment as style definition and fails to report error
1821
+ - Fixed bug #1746 : Very large reports can sometimes become garbled when using the parallel option
1822
+ - Fixed bug #1747 : Squiz.Scope.StaticThisUsage incorrectly looking inside closures
1823
+ - Fixed bug #1757 : Unknown type hint "object" in Squiz.Commenting.FunctionComment
1824
+ - Fixed bug #1758 : PHPCS gets stuck creating file list when processing circular symlinks
1825
+ - Fixed bug #1761 : Generic.WhiteSpace.ScopeIndent error on multi-line function call with static closure argument
1826
+ - Fixed bug #1762 : Generic.WhiteSpace.Disallow[Space/Tab]Indent not inspecting content before open tag
1827
+ -- Thanks to Juliette Reinders Folmer for the patch
1828
+ - Fixed bug #1769 : Custom "define" function triggers a warning about declaring new symbols
1829
+ - Fixed bug #1776 : Squiz.Scope.StaticThisUsage incorrectly looking inside anon classes
1830
+ - Fixed bug #1777 : Generic.WhiteSpace.ScopeIndent incorrect indent errors when self called function proceeded by comment
1831
+ </notes >
1832
+ </release >
1703
1833
<release >
1704
1834
<version >
1705
1835
<release >3.1.1</release >
0 commit comments