Return-Path: Delivered-To: apmail-lucene-mahout-dev-archive@minotaur.apache.org Received: (qmail 93178 invoked from network); 29 Nov 2009 03:42:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Nov 2009 03:42:46 -0000 Received: (qmail 9779 invoked by uid 500); 29 Nov 2009 03:42:46 -0000 Delivered-To: apmail-lucene-mahout-dev-archive@lucene.apache.org Received: (qmail 9649 invoked by uid 500); 29 Nov 2009 03:42:46 -0000 Mailing-List: contact mahout-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mahout-dev@lucene.apache.org Delivered-To: mailing list mahout-dev@lucene.apache.org Received: (qmail 9639 invoked by uid 99); 29 Nov 2009 03:42:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 03:42:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adeneche@gmail.com designates 209.85.211.185 as permitted sender) Received: from [209.85.211.185] (HELO mail-yw0-f185.google.com) (209.85.211.185) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 03:42:35 +0000 Received: by ywh15 with SMTP id 15so2267814ywh.5 for ; Sat, 28 Nov 2009 19:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=HdkZLP3Lgh1VDCldkwKyDZWNal3DiL2ihPIqMA5h3AU=; b=Y3IVuen/m2kSJAgC+a3NhOHcbCpbARxDmrKJjvaCyVrcXe/TFLSZbdxGlWRGOZX0Vp 0DoGuiK3pkBZc4Yz0vMiB2LUT0p9NtiBo1Bg9L7/yVUt7AHB3HAwaQRvr2dg+bh2Tfi5 I56tCPnfqufu4+Z/1hBtLKu0ab/UpSO/gdnNk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=OBLae02VISFNNypQ6svSqwk6cUCA0EwD5P6hMChjdkSrkLGtGIJMfR3OOZL574AKmm t9VsRRMoHlr77FFgCtzGx9ghv/YIsT6lT80afH7viWLR+hjEJ/OQVpD7412HNuj/KGW9 mx0GDqRfdjxG5/WXjIcMBMlW5/5gCc6LEcqvU= MIME-Version: 1.0 Received: by 10.150.127.10 with SMTP id z10mr4493010ybc.276.1259466134325; Sat, 28 Nov 2009 19:42:14 -0800 (PST) In-Reply-To: References: <200911272126.32870.isabel@apache.org> Date: Sun, 29 Nov 2009 04:42:14 +0100 Message-ID: <893e09580911281942p1624c61cscbec5f21702c1962@mail.gmail.com> Subject: Re: Publish code quality reports on web-site? From: deneche abdelhakim To: mahout-dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org df/mapred works with the old hadoop API df/mapreduce works with hadoop 0.20 API On Saturday, November 28, 2009, Sean Owen wrote: > I'm all for generating and publishing this. > > > The CPD results highlight a question I had: what's up with the amount > of duplication between org/apache/mahout/df/mapred and > org/apache/mahout/df/mapreduce -- what is the difference supposed to > be. > > > PMD is complaining a lot about the "foo =3D=3D false" vs "!foo" style. I > prefer the latter too but we had agreed to use the former, so we could > disable this check if possible. > > > Checkstyle: can we set it to allow a 120 character line, and adjust it > to consider an indent to be 2 spaces? it's flagging like every line of > code right now ! > > > On that note, if possible, I would suggest disabling the following > FindBugs checks, as they are flagging a lot of stuff that isn't > 'wrong', to me. > > SE_NO_SERIALVERSIONID > I completely disagree with it. serialVersionUID itself is bad > practice, in my book. > > EI_EXPOSE_REP2 > it's a fair point but only relevant to security, and we have no such > issue. The items it flags are done on purpose for performance, it > looks like. > > SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING > SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE > It's a good point in general, but I'm the only one writing JDBC code, > and there is actually no security issue here. It's a false positive > and we could disable this. > > SE_BAD_FIELD > This one is a little aggressive. It assumes that types not known to be > Serializable must not be Serializable, which isn't true. > > RV_RETURN_VALUE_IGNORED > It's a decent idea but flags a lot of legitimate code. For example > it's complaining about ignoring Queue.poll(), which, like a lot of > Collection API methods, > > UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR > I don't necessarily agree with this one, explicitly setting fields to > null and primitives to zero? tidy but I'm not used to it. > > > I didn't see anything big flagged, good, but we should all have a look > at the results and tweak accordingly. In some cases it had a good > small point, or I was indifferent about the approach it was suggesting > versus what was in the code, so I changed to comply with the check. > > > On Fri, Nov 27, 2009 at 8:26 PM, Isabel Drost wrote: >> >> Hello, >> >> I just ran several code analysis reports over the Mahout source code. >> Results are published at >> >> http://people.apache.org/~isabel/mahout_site/mahout-core/project-reports= .html >> >> It includes several reports on code quality, test coverage, java docs >> and the like. When generated regularly say on Hudson I think it could >> be beneficial both for us (for getting a quick impression of where >> cleanup is necessary most) as well as for potential users. >> >> I would like to see a third tab added to our homepage that points to >> a page containing reports for each of our modules. I would try to cleanu= p the >> generated site a little before - we certainly do not need the "Project >> information" stuff in there, as most of this is already generated >> through forest. In addition I can take care of setting up a hudson >> job to recreate the site on a regular schedule. >> >> Cheers, >> Isabel >> >> -- >> =A0|\ =A0 =A0 =A0_,,,---,,_ =A0 =A0 =A0 Web: =A0 >> =A0/,`.-'`' =A0 =A0-. =A0;-;;,_ >> =A0|,4- =A0) )-,_..;\ ( =A0`'-' >> '---''(_/--' =A0`-'\_) (fL) =A0IM: =A0 >> >> >