@@ -14,18 +14,19 @@ http://pear.php.net/dtd/package-2.0.xsd">
14141515 <active >yes</active >
1616 </lead >
17- <date >2016-07-14 </date >
18- <time >09:28 :00</time >
17+ <date >2016-07-20 </date >
18+ <time >13:30 :00</time >
1919 <version >
20- <release >3.0.0 </release >
21- <api >3.0.0 </api >
20+ <release >3.0.0a1 </release >
21+ <api >3.0.0a1 </api >
2222 </version >
2323 <stability >
24- <release >stable </release >
25- <api >stable </api >
24+ <release >alpha </release >
25+ <api >alpha </api >
2626 </stability >
2727 <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD 3-Clause License</license >
2828 <notes >
29+ - Min PHP version increased from 5.1.2 to 5.4.0
2930 - Added optional caching of results between runs (request #530)
3031 -- Enable the cache by using the --cache command line argument
3132 -- If you want the cache file written somewhere specific, use --cache=/path/to/cacheFile
@@ -1479,7 +1480,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
14791480 <dependencies >
14801481 <required >
14811482 <php >
1482- <min >5.1.2 </min >
1483+ <min >5.4.0 </min >
14831484 </php >
14841485 <pearinstaller >
14851486 <min >1.4.0b1</min >
@@ -1539,6 +1540,92 @@ http://pear.php.net/dtd/package-2.0.xsd">
15391540 </filelist >
15401541 </phprelease >
15411542 <changelog >
1543+ <release >
1544+ <version >
1545+ <release >3.0.0a1</release >
1546+ <api >3.0.0a1</api >
1547+ </version >
1548+ <stability >
1549+ <release >alpha</release >
1550+ <api >alpha</api >
1551+ </stability >
1552+ <date >2016-07-20</date >
1553+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1554+ <notes >
1555+ - Min PHP version increased from 5.1.2 to 5.4.0
1556+ - Added optional caching of results between runs (request #530)
1557+ -- Enable the cache by using the --cache command line argument
1558+ -- If you want the cache file written somewhere specific, use --cache=/path/to/cacheFile
1559+ -- Use the command "phpcs --config-set cache true" to turn caching on by default
1560+ -- Use the --no-cache command line argument to disable caching if it is being turned on automatically
1561+ - Add support for checking file in parallel (request #421)
1562+ -- Tell PHPCS how many files to check at once using the --parallel command line argument
1563+ -- To check 100 files at once, using --parallel=100
1564+ -- To disable parallel checking if it is being turned on automatically, use --parallel=1
1565+ -- Requires PHP to be compiled with the PCNTL package
1566+ - The default encoding has been changed from iso-8859-1 to utf-8 (request #760)
1567+ -- The --encoding command line argument still works, but you no longer have to set it to process files as utf-8
1568+ -- If encoding is being set to utf-8 in a ruleset or on the CLI, it can be safely removed
1569+ -- If the iconv PHP extension is not installed, standard non-multibyte aware functions will be used
1570+ - Added a new "code" report type to show a code snippet for each error (request #419)
1571+ -- The line containing the error is printed, along with 2 lines above and below it to show context
1572+ -- The location of the errors is underlined in the code snippet if you also use --colors
1573+ -- Use --report=code to generate this report
1574+ - Added support for custom filtering of the file list
1575+ -- Developers can write their own filter classes to perform custom filtering of the list before the run starts
1576+ -- Use the command line arg --filter=/path/to/filter.php to specify a filter to use
1577+ -- Extend \PHP_CodeSniffer\Filters\Filter to also support the core PHPCS extension and path filtering
1578+ -- Extend \PHP_CodeSniffer\Filters\ExactMatch to get the core filtering and the ability to use blacklists and whitelists
1579+ -- The included \PHP_CodeSniffer\Filters\GitModified filter is a good example of an ExactMatch filter
1580+ - Added support for only checking files that have been locally modified or added in a git repo
1581+ -- Use --filter=gitmodified to check these files
1582+ -- You still need to give PHPCS a list of files or directories in which to check
1583+ - Added automatic discovery of executable paths (request #571)
1584+ -- Thanks to Sergey Morozov for the patch
1585+ - You must now pass "-" on the command line to have PHPCS wait for STDIN
1586+ -- E.g., phpcs --standard=PSR2 -
1587+ -- You can still pipe content via STDIN as normal as PHPCS will see this and process it
1588+ -- But without the "-", PHPCS will throw an error if no content or files are passed to it
1589+ - All PHP errors generated by sniffs are caught, re-thrown as exceptions, and reported in the standard error reports
1590+ -- This should stop bugs inside sniffs causing infinite loops
1591+ -- Also stops invalid reports being produced as errors don't print to the screen directly
1592+ - Sniff codes are no longer optional
1593+ -- If a sniff throws and error or a warning, it must specify an internal code for that message
1594+ - The installed_paths config setting can now point directly to a standard
1595+ -- Previously, it had to always point to the directory in which the standard lives
1596+ - Multiple reports can now be specified using the --report command line argument
1597+ -- Report types are separated by commas
1598+ -- E.g., --report=full,summary,info
1599+ -- Previously, you had to use one argument for each report such as --report=full --report=summary --report=info
1600+ - You can now set the severity, message type, and exclude patterns for and entire sniff, category, or standard
1601+ -- Previously, this was only available for a single message
1602+ - You can now include a single sniff code in a ruleset instead of having to include an entire sniff
1603+ -- Including a sniff code will automatically exclude all other messages from that sniff
1604+ -- If the sniff is already included by an imported standard, set the sniff severity to 0 and include the specific message you want
1605+ - PHPCBF no longer uses patch
1606+ -- Files are now always overwritten
1607+ -- The --no-patch option has been removed
1608+ - Added a --basepath option to strip a directory from the front of file paths in output (request #470)
1609+ -- The basepath is absolute or relative to the current directory
1610+ -- E.g., to output paths relative to current dir in reports, use --basepath=.
1611+ - Ignore rules are now checked when using STDIN (request #733)
1612+ - Added an include-pattern tag to rulesets to include a sniff for specific files and folders only (request #656)
1613+ -- This is the exact opposite of the exclude-pattern tag
1614+ -- This option is only usable within sniffs, not globally like exclude-patterns are
1615+ - Added a new -m option to stop error messages from being recorded, which saves a lot of memory
1616+ -- PHPCBF always uses this setting to reduce memory as it never outputs error messages
1617+ -- Setting the $recordErrors member var inside custom report classes is no longer supported (use -m instead)
1618+ - Exit code 2 is now used to indicate fixable errors were found (request #930)
1619+ -- Exit code 3 is now used for general script execution errors
1620+ -- Exit code 1 is used to indicate that coding standard errors were found, but none are fixable
1621+ -- Exit code 0 is unchanged and continues to mean no coding standard errors found
1622+ - The included PHPCS standard has been removed
1623+ -- All rules are now found inside the phpcs.xml.dist file
1624+ -- Running "phpcs" without any arguments from a git clone will use this ruleset
1625+ - The included SVN pre-commit hook has been removed
1626+ -- Hooks for version control systems will no longer be maintained within the PHPCS project
1627+ </notes >
1628+ </release >
15421629 <release >
15431630 <version >
15441631 <release >2.6.2</release >
0 commit comments