Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-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 4D93618C04 for ; Tue, 20 Oct 2015 18:23:17 +0000 (UTC) Received: (qmail 58896 invoked by uid 500); 20 Oct 2015 18:23:14 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 58833 invoked by uid 500); 20 Oct 2015 18:23:14 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 58822 invoked by uid 99); 20 Oct 2015 18:23:13 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2015 18:23:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6B333180A4D for ; Tue, 20 Oct 2015 18:23:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 08EYOrnOYosp for ; Tue, 20 Oct 2015 18:23:02 +0000 (UTC) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id DA22224DBC for ; Tue, 20 Oct 2015 18:23:00 +0000 (UTC) Received: by pasz6 with SMTP id z6so28448778pas.2 for ; Tue, 20 Oct 2015 11:22:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=Eh1GLpvU30dmFAlisp4XK7fHHyZocNk386YsZSecAas=; b=bRX0i/DeBwUDDGDK0oGfg/Bb1Ek7QUBZR8+Jwf56N7R8awg38nSiEdZCOmPGH98DZs TAX4+pDQTDYxufnVo0gOYEg/LeGFq34Eu7UIyslWp9K0z0Ujtd0z5RAahsEY5LbMONYj ceBTyw3VQOb3MasbvAN/MNVXqFX+xa5GsHRPrVAVTwiveuo8QnMBLEixy8ZnOIigw9Lc P0gL8h6WpAMFPreIMeUQgH250IlGL3VG11BtkxCMv/J1kYNf0P+UjtgRiO8NfAxb1qey LO5WKMIoVp6pR4HLprCrIYcImwuTQXqHj4Fpph2mxPwLsMIbwhvmsKUbS2RxVgI4xs8u A6ww== X-Gm-Message-State: ALoCoQmotpXbm0WAHhj34vaR4yylABBV1zdqL/uYd9lDcLjKPftMi1lXfdNS0H1G6SPCall43k42 X-Received: by 10.68.185.67 with SMTP id fa3mr5299229pbc.113.1445365379489; Tue, 20 Oct 2015 11:22:59 -0700 (PDT) Received: from vrozov.local ([173.245.93.28]) by smtp.googlemail.com with ESMTPSA id ro3sm4959423pbc.69.2015.10.20.11.22.58 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Oct 2015 11:22:59 -0700 (PDT) Subject: Re: Existing checkstyle violations To: dev@apex.incubator.apache.org References: <562684A9.9080003@datatorrent.com> From: Vlad Rozov Organization: DataTorrent Message-ID: <56268682.80401@datatorrent.com> Date: Tue, 20 Oct 2015 11:22:58 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit +1 for 3. On 10/20/15 11:21, Chandni Singh wrote: > +1 for approach 2 > Preserves git annotation. > > On Tue, Oct 20, 2015 at 11:15 AM, Vlad Rozov > wrote: > >> All, >> >> We have a large number of existing checkstyle violations and it is >> cumbersome to distinguish a newly introduced violation from existing ones. >> We need to agree on the process to fix them and there are multiple >> approaches how we can do it. >> >> 1. Fix them all in a single commit (one commit for Core and one for >> Malhar). Pros: change can easily be distinguished from logical code >> changes. Cons: large number of changes in a single commit, hard to review. >> Changes and review likely to be done by developers not familiar with code >> specifics. >> 2. Fix as we go. Only change code style violation in modified places. >> Pros: limited amount of change. Easy to review. Cons: likely to take >> forever. Some part of the code may not be fixed at all. >> 3. Somewhat combination of 1 & 2. Fix all violations in files affected by >> a commit. Pros: changes likely to be done by developers familiar with the >> code. Cons: harder to distinguish between logical and style changes in a >> single commit. >> 4. Any other suggestions? >> >> Independently of the approach selected, we should not allow commits where >> entire file is modified due to style modifications. Such file(s) needs to >> be fixed and committed using Malhar CI. >> >> Thank you, >> >> Vlad >> >>