Re: Inconsistency in import ordering

2013-05-17 Thread Nick Williams
Scott, is there a particular page on the Wiki you want me to add them to? I'm 
not finding a whole lot just looking around. :-/

Nick

On May 16, 2013, at 5:28 PM, Scott Deboy wrote:

 Sure, add them to the wiki please.
 
 On 5/16/13, Nick Williams nicho...@nicholaswilliams.net wrote:
 CheckStyle ImportOrder changes committed.
 
 I also committed the changes necessary to rid all database appender and tag
 library classes of CheckStyle ImportOrder errors.
 
 I will continue to work on reordering imports in other classes.
 
 To prevent these CheckStyle errors from coming back, we should all align our
 IDEs' import settings with the CheckStyle rules below. If anyone is
 interested in a screenshot of the settings for IntelliJ IDEA, I can make
 that available.
 
 Nick
 
 On May 16, 2013, at 1:02 PM, Gary Gregory wrote:
 
 +1
 
 Gary
 
 
 On Thu, May 16, 2013 at 1:45 PM, Nick Williams
 nicho...@nicholaswilliams.net wrote:
 I haven't heard any objections to this suggestion. I'm going to move
 forward with it later this afternoon if nobody objects before then.
 
 Thanks,
 
 Nick
 
 On May 13, 2013, at 11:06 AM, Nick Williams wrote:
 
 I've noticed a lot of inconsistence in import ordering, and importantly
 I've also noticed that when developers are using IDE (I believe we all
 are) the IDEs are constantly re-ordering imports previously committed by
 other developers. This results in lots of commits that appear to change
 imports but only change import ordering.
 
 I'd like to add the following CheckStyle:
 
   module name=ImportOrder
   !-- Imports must be separated (by one newline) into the
 following groups:
java and javax
org
com
all others
Imports within a group must be sorted alphabetically
 (lexicographically)
All static imports come below all other imports --
   property name=groups value=/^javax?\./,org,com/
   property name=ordered value=true/
   property name=caseSensitive value=true /
   property name=separated value=true/
   property name=option value=bottom/
   /module
 
 This is similar to import order seen in other Apache projects.
 
 IntelliJ, Eclipse, and NetBeans are all capable of being configured to
 order imports in this same manner. If we agree to add this CheckStyle,
 we should all configure our local IDE per-project settings to enforce
 this ordering.
 
 Thoughts?
 
 
 -
 To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-dev-h...@logging.apache.org
 
 
 
 
 --
 E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
 Java Persistence with Hibernate, Second Edition
 JUnit in Action, Second Edition
 Spring Batch in Action
 Blog: http://garygregory.wordpress.com
 Home: http://garygregory.com/
 Tweet! http://twitter.com/GaryGregory
 
 
 
 -
 To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-dev-h...@logging.apache.org
 


-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org



Re: Inconsistency in import ordering

2013-05-16 Thread Nick Williams
I haven't heard any objections to this suggestion. I'm going to move forward 
with it later this afternoon if nobody objects before then.

Thanks,

Nick

On May 13, 2013, at 11:06 AM, Nick Williams wrote:

 I've noticed a lot of inconsistence in import ordering, and importantly I've 
 also noticed that when developers are using IDE (I believe we all are) the 
 IDEs are constantly re-ordering imports previously committed by other 
 developers. This results in lots of commits that appear to change imports but 
 only change import ordering.
 
 I'd like to add the following CheckStyle:
 
module name=ImportOrder
!-- Imports must be separated (by one newline) into the following 
 groups:
 java and javax
 org
 com
 all others
 Imports within a group must be sorted alphabetically 
 (lexicographically)
 All static imports come below all other imports --
property name=groups value=/^javax?\./,org,com/
property name=ordered value=true/
property name=caseSensitive value=true /
property name=separated value=true/
property name=option value=bottom/
/module
 
 This is similar to import order seen in other Apache projects.
 
 IntelliJ, Eclipse, and NetBeans are all capable of being configured to order 
 imports in this same manner. If we agree to add this CheckStyle, we should 
 all configure our local IDE per-project settings to enforce this ordering.
 
 Thoughts?


-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org



Re: Inconsistency in import ordering

2013-05-16 Thread Gary Gregory
+1

Gary


On Thu, May 16, 2013 at 1:45 PM, Nick Williams 
nicho...@nicholaswilliams.net wrote:

 I haven't heard any objections to this suggestion. I'm going to move
 forward with it later this afternoon if nobody objects before then.

 Thanks,

 Nick

 On May 13, 2013, at 11:06 AM, Nick Williams wrote:

  I've noticed a lot of inconsistence in import ordering, and importantly
 I've also noticed that when developers are using IDE (I believe we all are)
 the IDEs are constantly re-ordering imports previously committed by other
 developers. This results in lots of commits that appear to change imports
 but only change import ordering.
 
  I'd like to add the following CheckStyle:
 
 module name=ImportOrder
 !-- Imports must be separated (by one newline) into the
 following groups:
  java and javax
  org
  com
  all others
  Imports within a group must be sorted alphabetically
 (lexicographically)
  All static imports come below all other imports --
 property name=groups value=/^javax?\./,org,com/
 property name=ordered value=true/
 property name=caseSensitive value=true /
 property name=separated value=true/
 property name=option value=bottom/
 /module
 
  This is similar to import order seen in other Apache projects.
 
  IntelliJ, Eclipse, and NetBeans are all capable of being configured to
 order imports in this same manner. If we agree to add this CheckStyle, we
 should all configure our local IDE per-project settings to enforce this
 ordering.
 
  Thoughts?


 -
 To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-dev-h...@logging.apache.org




-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Editionhttp://www.manning.com/bauer3/
JUnit in Action, Second Edition http://www.manning.com/tahchiev/
Spring Batch in Action http://www.manning.com/templier/
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: Inconsistency in import ordering

2013-05-16 Thread Nick Williams
CheckStyle ImportOrder changes committed.

I also committed the changes necessary to rid all database appender and tag 
library classes of CheckStyle ImportOrder errors.

I will continue to work on reordering imports in other classes.

To prevent these CheckStyle errors from coming back, we should all align our 
IDEs' import settings with the CheckStyle rules below. If anyone is interested 
in a screenshot of the settings for IntelliJ IDEA, I can make that available.

Nick

On May 16, 2013, at 1:02 PM, Gary Gregory wrote:

 +1
 
 Gary
 
 
 On Thu, May 16, 2013 at 1:45 PM, Nick Williams 
 nicho...@nicholaswilliams.net wrote:
 I haven't heard any objections to this suggestion. I'm going to move forward 
 with it later this afternoon if nobody objects before then.
 
 Thanks,
 
 Nick
 
 On May 13, 2013, at 11:06 AM, Nick Williams wrote:
 
  I've noticed a lot of inconsistence in import ordering, and importantly 
  I've also noticed that when developers are using IDE (I believe we all are) 
  the IDEs are constantly re-ordering imports previously committed by other 
  developers. This results in lots of commits that appear to change imports 
  but only change import ordering.
 
  I'd like to add the following CheckStyle:
 
 module name=ImportOrder
 !-- Imports must be separated (by one newline) into the 
  following groups:
  java and javax
  org
  com
  all others
  Imports within a group must be sorted alphabetically 
  (lexicographically)
  All static imports come below all other imports --
 property name=groups value=/^javax?\./,org,com/
 property name=ordered value=true/
 property name=caseSensitive value=true /
 property name=separated value=true/
 property name=option value=bottom/
 /module
 
  This is similar to import order seen in other Apache projects.
 
  IntelliJ, Eclipse, and NetBeans are all capable of being configured to 
  order imports in this same manner. If we agree to add this CheckStyle, we 
  should all configure our local IDE per-project settings to enforce this 
  ordering.
 
  Thoughts?
 
 
 -
 To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-dev-h...@logging.apache.org
 
 
 
 
 -- 
 E-Mail: garydgreg...@gmail.com | ggreg...@apache.org 
 Java Persistence with Hibernate, Second Edition
 JUnit in Action, Second Edition
 Spring Batch in Action
 Blog: http://garygregory.wordpress.com 
 Home: http://garygregory.com/
 Tweet! http://twitter.com/GaryGregory