Re: List of all Sniffs in PHP_CodeSniffer

From: Date: Fri, 27 Mar 2009 08:02:10 +0000
Subject: Re: List of all Sniffs in PHP_CodeSniffer
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51669@lists.php.net to get a copy of this message
Hello Greg, Thanks a lot for your response, it will help me very much! Regards, Julien On Thu, Mar 26, 2009 at 22:30, Greg Sherwood <gsherwood@squiz.net> wrote: > Hi Julien, > > PHP_CodeSniffer has a verbose output option that allows you to see all > sniffs included in a standard when you check a file. Depending on what you > want to do with the list, this information might be enough. > > squiz@debian:~/PHP_CodeSniffer$ phpcs -vvv --standard=PEAR temp.php > Registering sniffs in PEAR standard... > Registered PEAR_Sniffs_WhiteSpace_ObjectOperatorIndentSniff > Registered PEAR_Sniffs_WhiteSpace_ScopeIndentSniff > Registered PEAR_Sniffs_WhiteSpace_ScopeClosingBraceSniff > Registered PEAR_Sniffs_Files_LineLengthSniff > Registered PEAR_Sniffs_Files_LineEndingsSniff > Registered PEAR_Sniffs_Files_IncludingFileSniff > Registered PEAR_Sniffs_Commenting_FileCommentSniff > Registered PEAR_Sniffs_Commenting_ClassCommentSniff > Registered PEAR_Sniffs_Commenting_InlineCommentSniff > Registered PEAR_Sniffs_Commenting_FunctionCommentSniff > Registered PEAR_Sniffs_NamingConventions_ValidVariableNameSniff > Registered PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff > Registered PEAR_Sniffs_NamingConventions_ValidClassNameSniff > Registered PEAR_Sniffs_ControlStructures_MultiLineConditionSniff > Registered PEAR_Sniffs_ControlStructures_ControlSignatureSniff > Registered PEAR_Sniffs_ControlStructures_InlineControlStructureSniff > Registered PEAR_Sniffs_Formatting_MultiLineAssignmentSniff > Registered PEAR_Sniffs_Classes_ClassDeclarationSniff > Registered PEAR_Sniffs_Functions_FunctionDeclarationSniff > Registered PEAR_Sniffs_Functions_ValidDefaultValueSniff > Registered PEAR_Sniffs_Functions_FunctionCallSignatureSniff > Registered PEAR_Sniffs_Functions_FunctionCallArgumentSpacingSniff > Registered > Generic_Sniffs_NamingConventions_UpperCaseConstantNameSniff > Registered Generic_Sniffs_PHP_LowerCaseConstantSniff > Registered Generic_Sniffs_PHP_DisallowShortOpenTagSniff > Registered Generic_Sniffs_WhiteSpace_DisallowTabIndentSniff > DONE (26 sniffs registered) > ... > > You will need to check a file to get this list to show. Change the standard > to whatever you want to get a list for and be prepared for a lot more output > after this top section. > > Greg > > On 26/03/2009, at 11:34 PM, Julien Lancelot wrote: > > Hello, >> >> I'd like to know if there's a way to extract all available sniffs from all >> standard (Generci, PEAR, Zend, ...) of PHP CodeSniffer ? >> Or has someone already have this list? >> >> Thanks a lot! >> >> Regards, >> >> Julien Lancelot >> >> >> -- >> PEAR Development Mailing List (http://pear.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > ------------------ > > Greg Sherwood | Product Development Manager > > Squiz > 92 Jarrett St Leichhardt, Sydney NSW, Australia 2040 > > t: 13000 SQUIZ ( Support ) > t: +61 2 8507 9900 / 1300 130 661 > f: +61 2 8507 9988 > e: gsherwood@squiz.net > w: http://matrix.squiz.net > w: http://www.squiz.net > > Sydney | Melbourne | Canberra | Hobart | Brisbane > Australia | New Zealand | United Kingdom | Poland > >

« previous php.pear.dev (#51669) next »