You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "David Medinets (JIRA)" <ji...@apache.org> on 2013/03/06 20:58:12 UTC

[jira] [Resolved] (ACCUMULO-1158) Remove whitespace at end of lines in java files (a checkstyle rule)

     [ https://issues.apache.org/jira/browse/ACCUMULO-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Medinets resolved ACCUMULO-1158.
--------------------------------------

    Resolution: Fixed

SVN#1453515. I wrote a script (look in contribs/checkstyle) which removes whitespace at the end of a line in Java files. This script does touch every file but does not change anything except for line endings so diffs between old and new versions should show the specific whitespace changes. There is a checkstyle.xml file in contribs/checkstyle which has only one rule. THE TOP-LEVEL pom.xml WAS CHANGED BY ADDING A CHECKSTYLE SECTION which references the contrib/checkstyle/checkstyle.xml file ... not sure if that's the best way to go. Please change if you have a better idea.
                
> Remove whitespace at end of lines in java files (a checkstyle rule)
> -------------------------------------------------------------------
>
>                 Key: ACCUMULO-1158
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1158
>             Project: Accumulo
>          Issue Type: Task
>            Reporter: David Medinets
>            Assignee: David Medinets
>            Priority: Trivial
>
> Maven has a checkstyle:checkstyle goal which, oddly enough, runs the checkstyle (http://checkstyle.sourceforge.net/) tool that checks coding style. There are many rules available. When all rules are turned on, there are over 80,000 messages. Changing the code base, all at once, to mitigate that many messages is not feasible.
> In order to get the process moving, I suggest only the 'no whitespace at end of lines' be turned on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira