cvs: peardoc /en/package/php/php-codesniffer usage.xml

From: Date: Thu, 10 May 2007 00:11:13 +0000
Subject: cvs: peardoc /en/package/php/php-codesniffer usage.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9713@lists.php.net to get a copy of this message
squiz Thu May 10 00:11:13 2007 UTC Modified files: /peardoc/en/package/php/php-codesniffer usage.xml Log: Updated docs for new -l command line arg http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-codesniffer/usage.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/php/php-codesniffer/usage.xml diff -u peardoc/en/package/php/php-codesniffer/usage.xml:1.3 peardoc/en/package/php/php-codesniffer/usage.xml:1.4 --- peardoc/en/package/php/php-codesniffer/usage.xml:1.3 Tue Jan 30 23:10:31 2007 +++ peardoc/en/package/php/php-codesniffer/usage.xml Thu May 10 00:11:13 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.php.php-codesniffer.usage"> <refnamediv> <refname>Usage</refname> @@ -14,11 +14,12 @@ <para> <screen> <![CDATA[ -Usage: phpcs [-nvi] [--report=<report>] [--standard=<standard>] [--extensions=<extensions>] <file> ... +Usage: phpcs [-lnvi] [--report=<report>] [--standard=<standard>] [--extensions=<extensions>] <file> ... <file> : one or more files and/or directories to check <standard> : the name of the coding standard to use <report> : print either the "full" or "summary" report <extensions> : a comma separated list of file extensions to check (only valid if checking a directory) + -l : local directory only, no recursion -n : do not print warnings -v[v][v] : print verbose output -i : show a list of installed coding standards @@ -40,6 +41,11 @@ <para> The simplest way of using PHP_CodeSniffer is to provide the location of a file or folder for PHP_CodeSniffer to check. If a folder is provided, PHP_CodeSniffer will check all files it finds in that folder and all its sub-folders. </para> + <note> + <simpara> + If you do not want sub-folders checked, use the <literal>-l</literal> command line argument to force PHP_CodeSniffer to run locally in the folders specified. + </simpara> + </note> <para> In the example below, the first command tells PHP_CodeSniffer to check the <filename>myfile.inc</filename> file for coding standard errors while the second command tells PHP_CodeSniffer to check all PHP files in the <filename>my_dir</filename> directory. </para>

« previous php.pear.doc (#9713) next »