Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2D15194D2 for ; Fri, 22 Apr 2016 18:43:13 +0000 (UTC) Received: (qmail 58380 invoked by uid 500); 22 Apr 2016 18:43:13 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 58264 invoked by uid 500); 22 Apr 2016 18:43:13 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 58182 invoked by uid 99); 22 Apr 2016 18:43:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2016 18:43:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 27C042C1F6F for ; Fri, 22 Apr 2016 18:43:13 +0000 (UTC) Date: Fri, 22 Apr 2016 18:43:13 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15693) Reconsider the ImportOrder rule of checkstyle 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/HBASE-15693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15254442#comment-15254442 ] stack commented on HBASE-15693: ------------------------------- +1 Be careful config'ing checkstyle. I've not had good luck with it. Build was broke on commit. Easy to check for post-commit. > Reconsider the ImportOrder rule of checkstyle > --------------------------------------------- > > Key: HBASE-15693 > URL: https://issues.apache.org/jira/browse/HBASE-15693 > Project: HBase > Issue Type: Bug > Components: build > Reporter: Duo Zhang > Assignee: Duo Zhang > Labels: checkstyle > Attachments: HBASE-15693.patch > > > I have been confused many times with the wrong import order checkstyle warnings in the pre commit result. And I haven't found any developer guide which tells me what is the right order so this time I decided to read the rule by myself. > In the ImportOrder section, we declare sortStaticImportsAlphabetically which can only work with option 'top' or 'bottom'(which means place static imports on top or bottom) and use the default option which is 'under'. > I prefer placing static import on top, so I suggest here we set option to 'top'. -- This message was sent by Atlassian JIRA (v6.3.4#6332)