Em 09/12/2009 21:30, Simon Denier <Simon.Denier@inria.fr> escreveu:
On 9 déc. 2009, at 19:11, csrabak@bol.com.br wrote:
I also vote for having it running at Pharo website. However it gives another opportunity to my canvassing: it is imperative that the comments written (class and methods) be accurate and uptodate!!
Can someone quickly run some query to see how bad it is? That is, how many classes without comment or with the generic template?
I ran the following script in the Workspace: nocomments := Smalltalk allClasses select: [:c | c comment string prefixMatchesRegex: '. [A-z]+ is x+\.$']. The results in the images I have are: +--------+------+------+ |Image |update|result| +--------+------+------+ |1.0-dev | 10502| 954| +--------+------+------+ |1.1-core| 11097| 613| +--------+------+------+ | 1.1-dev| 11097| 967| +--------+------+------+ Doing the same exercise with a bloc [:c| c comment string isEmpty] returns no class. Is there another search string or way to detect other empty comments? -- Cesar Rabak