Skip to content

Commit

Permalink
Updated changelog + help text for squizlabs#2137
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Apr 15, 2019
1 parent 3662148 commit 113a85b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
</stability>
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD 3-Clause License</license>
<notes>
- Added support for only checking files that have been locally staged in a git repo
-- Use --filter=gitstaged to check these files
-- You still need to give PHPCS a list of files or directories in which to apply the filter
-- Thanks to Juliette Reinders Folmer for the contribution
- Fixed bug #2478 : FunctionCommentThrowTag.WrongNumber when exception is thrown once but built conditionally
- Fixed bug #2479 : Generic.WhiteSpace.ScopeIndent error when using array destructuring with exact indent checking
</notes>
Expand Down
8 changes: 5 additions & 3 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,9 @@ public function printPHPCSUsage()
echo ' e.g., module/php,es/js'.PHP_EOL;
echo ' <file> One or more files and/or directories to check'.PHP_EOL;
echo ' <fileList> A file containing a list of files and/or directories to check (one per line)'.PHP_EOL;
echo ' <filter> Use the "gitmodified" filter, or specify the path to a custom filter class'.PHP_EOL;
echo ' <generator> Uses either the "HTML", "Markdown" or "Text" generator'.PHP_EOL;
echo ' <filter> Use either the "gitmodified" or "gitstaged" filter,'.PHP_EOL;
echo ' or specify the path to a custom filter class'.PHP_EOL;
echo ' <generator> Use either the "HTML", "Markdown" or "Text" generator'.PHP_EOL;
echo ' (forces documentation generation instead of checking)'.PHP_EOL;
echo ' <patterns> A comma separated list of patterns to ignore files and directories'.PHP_EOL;
echo ' <processes> How many files should be checked simultaneously (default is 1)'.PHP_EOL;
Expand Down Expand Up @@ -1463,7 +1464,8 @@ public function printPHPCBFUsage()
echo ' e.g., module/php,es/js'.PHP_EOL;
echo ' <file> One or more files and/or directories to fix'.PHP_EOL;
echo ' <fileList> A file containing a list of files and/or directories to fix (one per line)'.PHP_EOL;
echo ' <filter> Use the "gitmodified" filter, or specify the path to a custom filter class'.PHP_EOL;
echo ' <filter> Use either the "gitmodified" or "gitstaged" filter,'.PHP_EOL;
echo ' or specify the path to a custom filter class'.PHP_EOL;
echo ' <patterns> A comma separated list of patterns to ignore files and directories'.PHP_EOL;
echo ' <processes> How many files should be fixed simultaneously (default is 1)'.PHP_EOL;
echo ' <severity> The minimum severity required to fix an error or warning'.PHP_EOL;
Expand Down

0 comments on commit 113a85b

Please sign in to comment.