Closed maxvetrenko closed 10 years ago
please make sure that list of Tokens between each user could enforce vertical whitespace will be managed by user through Check parameters.
Please make sure that "Exception: A blank line between two consecutive fields..." will be covered by Check
I'll check it during implementation.
I do not see implementation , i see only Input file
1) Where is JavaDoc ?
2) I do not see a reason to add support for empty lines for imports as you need to copy whole check of ImportOrder .... too much to my mind for this Check. Lets focus on http://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s4.6.1-vertical-whitespace in this Check, and spaces between imports implement in ImportOrderCheck
lets have a call if you disagree.
1)
- * Checks for blank line separators after fields, constructors,
- * methods, nested classes, static initializers, instance initializers.
Why after package and all imports options are missed ?
2)
- *
An example of how to configure the check is:
- *
- *
- *
- * <module name="EmptyLineSeparator"/>
- *
Do you see big help to provide user example how to configure Check with default options ? and after that with custom options
1)
all imports fields
please consult with specifcation before naming smth http://docs.oracle.com/javase/specs/jls/se7/html/jls-7.html#jls-7.5
2)
- * Example of instances without blank line separator:
Example of declarations ....
Call me and explain difference between: declaration, definition, class, instance. before call review
3)
Example of instances with blank line separator:
Example of declarations with blank line separator that is expected by the Check by default :
4)
lastToken = null == lastToken ? aToken.getLastChild() : lastToken;
try to avoid ternary usage - it is not very readable. in this case : if (null == lastToken) { lastToken = aToken.getLastChild(); }
code looks ok to me. please update xdoc and do PR.
http://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s3.3.3-import-ordering-and-spacing http://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s4.6.1-vertical-whitespace Need to implement next rule: Exactly one blank line separates each section that is present. Also need to cover Vertical Whitespace