Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50CAC9ACA for ; Mon, 23 Apr 2012 04:15:14 +0000 (UTC) Received: (qmail 54308 invoked by uid 500); 23 Apr 2012 04:15:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 54123 invoked by uid 500); 23 Apr 2012 04:15:12 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 54094 invoked by uid 99); 23 Apr 2012 04:15:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2012 04:15:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2012 04:15:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 016D3409D3B for ; Mon, 23 Apr 2012 04:14:47 +0000 (UTC) Date: Mon, 23 Apr 2012 04:14:47 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <170965730.3569.1335154488082.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1826372192.15850.1334198297443.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LUCENE-3973) Incorporate PMD / FindBugs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir updated LUCENE-3973: -------------------------------- Attachment: LUCENE-3973.patch updated patch with 2 tweaks: # explicitly exclude pmd/ from binary dist patterns (just in case!) # only download jars for pmd (not source and javadocs, they are massive) > Incorporate PMD / FindBugs > -------------------------- > > Key: LUCENE-3973 > URL: https://issues.apache.org/jira/browse/LUCENE-3973 > Project: Lucene - Java > Issue Type: Improvement > Components: general/build > Reporter: Chris Male > Attachments: LUCENE-3973.patch, LUCENE-3973.patch, LUCENE-3973.patch, LUCENE-3973.patch, core.html, solr-core.html > > > This has been touched on a few times over the years. Having static analysis as part of our build seems like a big win. For example, we could use PMD to look at {{System.out.println}} statements like discussed in LUCENE-3877 and we could possibly incorporate the nocommit / @author checks as well. > There are a few things to work out as part of this: > - Should we use both PMD and FindBugs or just one of them? They look at code from different perspectives (bytecode vs source code) and target different issues. At the moment I'm in favour of trying both but that might be too heavy handed for our needs. > - What checks should we use? There's no point having the analysis if it's going to raise too many false-positives or problems we don't deem problematic. > - How should the analysis be integrated in our build? Need to work out when the analysis should run, how it should be incorporated in Ant and/or Maven, what impact errors should have. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org