Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 22095200BB7 for ; Wed, 26 Oct 2016 01:27:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 20D60160AFA; Tue, 25 Oct 2016 23:27:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8C033160AD8 for ; Wed, 26 Oct 2016 01:27:00 +0200 (CEST) Received: (qmail 88605 invoked by uid 500); 25 Oct 2016 23:26:59 -0000 Mailing-List: contact dev-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list dev@asterixdb.apache.org Received: (qmail 88594 invoked by uid 99); 25 Oct 2016 23:26:59 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2016 23:26:59 +0000 Received: from [10.17.2.134] (unknown [206.169.106.2]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 87B421A0015 for ; Tue, 25 Oct 2016 23:26:59 +0000 (UTC) From: "Till Westmann" To: dev@asterixdb.apache.org Subject: Re: Line limit (120) is not enforced for an assignment statement. Date: Tue, 25 Oct 2016 16:26:58 -0700 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; markup=markdown Content-Transfer-Encoding: quoted-printable X-Mailer: MailMate (1.9.5r5263) archived-at: Tue, 25 Oct 2016 23:27:01 -0000 +1 On 25 Oct 2016, at 13:29, Taewoo Kim wrote: > There is a formatter issue regarding an assignment statement whose = > length > is over 120. An example is as follows: > private final IBinaryComparator strLowerCaseTokenCmp =3D > AqlBinaryComparatorFactoryProvider.UTF8STRING_LOWERCASE_TOKEN_POINTABLE= _INSTANCE.createBinaryComparator(); > > Currently, the formatter doesn't wrap this line into two lines because = > "No > Wrap" policy is applied. So, I would like to propose the following = > change. > After applying this change, we can keep the hard limit (120) well. > > AsterixCodeFormatProfile.xml > > Line Wrapping -> Expressions -> Assignments > > (Before) Line Wrapping Policy: Do not Wrap > (After) Wrap where necessary > > @Yingyi: I wonder whether your proposed change (do not remove blank = > lines > in the comment section) is already applied to the format file. Please = > let > me know. Then, I will download the file from > https://cwiki.apache.org/confluence/download/attachments/61322291/Aster= ixCodeFormatProfile.xml > and apply my change and upload the file.