Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 95994 invoked from network); 8 Mar 2004 23:00:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Mar 2004 23:00:57 -0000 Received: (qmail 97537 invoked by uid 500); 8 Mar 2004 23:00:25 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 97504 invoked by uid 500); 8 Mar 2004 23:00:24 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 97434 invoked from network); 8 Mar 2004 23:00:24 -0000 Received: from unknown (HELO prosun.first.fraunhofer.de) (194.95.168.2) by daedalus.apache.org with SMTP; 8 Mar 2004 23:00:24 -0000 Received: from pille.first.fraunhofer.de (pille [194.95.168.10]) by prosun.first.fraunhofer.de (8.12.10/8.12.10) with ESMTP id i28N0Udh000470 for ; Tue, 9 Mar 2004 00:00:30 +0100 (MET) Received: from localhost (tomdz@localhost) by pille.first.fraunhofer.de (8.8.8+Sun/8.8.8) with ESMTP id AAA25786 for ; Tue, 9 Mar 2004 00:00:29 +0100 (MET) X-Authentication-Warning: pille.first.fraunhofer.de: tomdz owned process doing -bs Date: Tue, 9 Mar 2004 00:00:29 +0100 (MET) From: Thomas Dudziak X-Sender: tomdz@pille To: OJB Developers List Subject: Re: checkstyle for ojb ? In-Reply-To: <404CC60C.8090001@gmx.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mon, 8 Mar 2004, Jakob Braeuchi wrote: > there are several plugins for checkstyle. i use > http://sourceforge.net/projects/eclipse-cs which runs inside eclipse m7. That's the one I tried. It died on me with an out-of-memory error (not Javas/Eclipses fault with 1gig of memory). I guess this is not a big issue, though, as we'd probably use it with an ant task. > imo we should not be too rigid about code-formatting (it ends up in religious > discussions about where to put the braces ;) ) but we should enable checking of > unused imports, unused variables and the like. I agree, though there are some code formatting issues that are important to error prevention IMO, e.g. always using braces in if-statements etc. For these things there should be rules. As Antonio said, some of these things are checked by Eclipse (e.g. unused imports, unused variables in M7 ?). What I think is even more important is adding source documentation (and keeping it consistent with the source) and removing duplicate code and the like because an unused import doesn't hurt (it's unlikely at least) whereas code duplication does hurt (when one instance has to be changed ...). Tom --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org