Re: CodeSniffer throw warning for missing filedoc

From: Date: Wed, 10 Dec 2008 21:11:45 +0000
Subject: Re: CodeSniffer throw warning for missing filedoc
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51277@lists.php.net to get a copy of this message
On Wed, Dec 10, 2008 at 12:44 PM, Christian Weiske <cweiske@cweiske.de>wrote: > Hello Harley, > > > > How would you feel about making the CodeSniffer throw warnings instead > > of errors for missing filedoc comments? > > > > Having both class comment and filedoc comments can be redundant when > > the file only contains 1 class, and nothing outside the class. > > > > Filedoc comments work well if the file contains multiple classes or > > global code. > > > > From my own experience the filedoc is little more than a copy of the > > class comment, with inline license text and the first line from the > > class comment or the class name. It does not really add anything of > > value. > > It is only redundant if you have no other code except the class - that > is, no require/include calls, no global functions, no global constants > etc. > If for no other reason, I'm sure this requirement stems from phpDocumentor requiring it... -- CRB

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