[ 
https://issues.apache.org/jira/browse/OPENJPA-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719661#action_12719661
 ] 

Pinaki Poddar commented on OPENJPA-1015:
----------------------------------------

> Anyone opposed to doing the tests as well? 

I am, at least temporarily. 
1. I am checking in auto-generated source code for meta-model classes in the 
test directories. The program that generates these source code do not 
understand char-width limit. Making them smart in that respect is not currently 
in my priority list. Till that is done any policy in this regard should not 
block commit.

2. While everyone agrees on a limit, there is no agreement on 80 char per se.

3. Test code had been kept out of width limit traditionally. This looks like a 
new policy. Should be part of a separate discussion than this one whose 
original purpose was to recognize an *existing* policy. 

4. I see violation of other rules in source tree that are not checked now. If 
compliance is the main goal that focus should be increasing the variety of 
compliance rules on the source tree rather than including Test  sources. 



> Enforce 80-column line width for source code
> --------------------------------------------
>
>                 Key: OPENJPA-1015
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1015
>             Project: OpenJPA
>          Issue Type: Test
>            Reporter: Pinaki Poddar
>            Assignee: B.J. Reed
>             Fix For: 2.0.0-M2
>
>         Attachments: line80.txt, OPENJPA-1015-audit-output.patch, 
> OPENJPA-1015-checkstyle.xml.patch, OPENJPA-1015-max80chars.patch, 
> OPENJPA-1015-newlineendoffile.patch, OPENJPA-1015-plugin-version.patch, 
> OPENJPA-1015-test.patch, TestLineWidth.java
>
>
> There used to be a rule of 80-column width for source code.
> That rule is slowly yielding. 
> Should we add a test case to catch such violation?
> Or should we not reignite the age-old battle about line width, placement of 
> brackets etc?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to