Return-Path: X-Original-To: apmail-incubator-crunch-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-crunch-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AC63981D for ; Thu, 21 Jun 2012 04:35:06 +0000 (UTC) Received: (qmail 45932 invoked by uid 500); 21 Jun 2012 04:35:06 -0000 Delivered-To: apmail-incubator-crunch-dev-archive@incubator.apache.org Received: (qmail 45880 invoked by uid 500); 21 Jun 2012 04:35:04 -0000 Mailing-List: contact crunch-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: crunch-dev@incubator.apache.org Delivered-To: mailing list crunch-dev@incubator.apache.org Received: (qmail 45835 invoked by uid 99); 21 Jun 2012 04:35:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 04:35:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robert@wibidata.com designates 209.85.215.175 as permitted sender) Received: from [209.85.215.175] (HELO mail-ey0-f175.google.com) (209.85.215.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 04:34:58 +0000 Received: by eaal1 with SMTP id l1so32807eaa.6 for ; Wed, 20 Jun 2012 21:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wibidata.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Z0zmfKEl3nbXrQF/9HbXk54ygasvLfEKXa8R2gF2194=; b=mvyIonVaghikBy3Yjevr0R+lQAr3vlv6ypf60Qy1PJuSDNNAfee2B68k5yogsTvWgH j494kcQjXO9rOfoI8w7kiJb9H7QugnoDOEX1EMXGnf5yi9uQJ3gOyH7RAHujcwjYNj3o ny/piLUTHWinivArTeli8YDzwY5zrn1i/JJBw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=Z0zmfKEl3nbXrQF/9HbXk54ygasvLfEKXa8R2gF2194=; b=QQB5PKMGtdEJY5SF08VWjxnBnR0LGoIUQ3uTe4MNVm/LBD2zWcf0MjC2dTdfXPFsJM EfQaDQfc8Py6CkXAjQdBbxeZ7MPJyJWBKPepTnKKRqHt+U8mcPLhEFMmP88GjiJoG4/+ Tyzp2YwKepNJhERVs11VBecvxAZlgxjTIgKdo5r29PCUAXzUJS0MlY7e2i2Wlu2zABPz IeluN1mkbHpnHj0zeVkL1levs+VzPR+hxGYZc/EVfb5EXdr5oNkaNKiNQiVqP+0z8aRm 1nwNik1aM+vH8ggTBc4E1DxKmaB49kTdsnkFveysiCiZ2eo8wBOox9XOWhl4sqhdtBgU Q2Yg== MIME-Version: 1.0 Received: by 10.14.127.136 with SMTP id d8mr5690225eei.159.1340253275872; Wed, 20 Jun 2012 21:34:35 -0700 (PDT) Received: by 10.14.96.73 with HTTP; Wed, 20 Jun 2012 21:34:35 -0700 (PDT) In-Reply-To: References: <3fd46440-f94e-494c-a5c5-1f640d545f96@s6g2000pbi.googlegroups.com> <86AEC9345436442F937C7B7D5681F39D@gmail.com> Date: Wed, 20 Jun 2012 21:34:35 -0700 Message-ID: Subject: Re: Checkstyle & Reviews From: Robert Chu To: Tom White Cc: crunch-dev@incubator.apache.org, Josh Wills , Crunch Dev Content-Type: multipart/alternative; boundary=90e6ba5bb9136ade6704c2f40899 X-Gm-Message-State: ALoCoQl2p27mQye+PiGi/pc7LoCjk/gsYuYVduPpRNm4Uiv/FcXNc/AGvl/+0KJG3C8Z0Ww6PVpE X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba5bb9136ade6704c2f40899 Content-Type: text/plain; charset=ISO-8859-1 Using checkstyle with maven has worked well for me in my experience as well. For those of you who have had a bad experience with the maven-checkstyle combination, what went wrong? I'd like to have a checkstyle system that doesn't require developers to use eclipse (I don't use eclipse for development). On Tue, Jun 19, 2012 at 2:01 PM, Tom White wrote: > On Sat, Jun 16, 2012 at 3:27 AM, Gabriel Reid > wrote: > > +1 for a style guide and/or formatting rules and coding rules. > > > > For code style, something that I've seen work well (at least if everyone > is using Eclipse) is to just have a shared code style definition that you > can import into Eclipse, and then set Eclipse to apply that style whenever > you save a file. This works great if everyone uses the same style > definition, and breaks down rapidly if they don't. > > > > I don't have any experience using the maven-findbugs-plugin, but I do > find the Checkstyle useful, as long as the settings are sane (which is not > always the case). > > We've had a good experience with Checkstyle in Apache Whirr. The way > we have it set up is to fail the package build if there are Checkstyle > errors. The relevant POM for doing that is at > http://svn.apache.org/repos/asf/whirr/trunk/pom.xml > > Tom > > > > > On Saturday 16 June 2012 at 00:17, Josh Wills wrote: > > > >> I'm in favor of a style guide; consistent layout makes it easier for > >> my brain to devour code. That said, I'm not up-to-date on best > >> practices here in the real world; my only experience with automated > >> code review tools was at teh goog. > >> > >> Re: code reviews, let's start that discussion up in another thread. > >> > >> J > >> > >> On Fri, Jun 15, 2012 at 3:13 PM, Robert Chu robert@wibidata.com)> wrote: > >> > Hey Everybody, > >> > > >> > I'd like to start a discussion about using automated code review tools > >> > to improve the crunch development process. I'd I'm personally a big > >> > fan of using tools that can help improve code quality. These tools > >> > often include things like the maven-checkstyle-plugin and the maven- > >> > findbugs-plugin. I am currently unaware of any comparable scala > >> > automated tools. If people have opinions on whether or not we should > >> > use tools like this or which tools we should be using specifically > >> > please let us know. > >> > > >> > Also, another related question: Should we have some sort of a code > >> > review process? > >> > > >> > Robert Chu > >> > >> > >> > >> -- > >> Director of Data Science > >> Cloudera > >> Twitter: @josh_wills > > > > > --90e6ba5bb9136ade6704c2f40899--