Currently, Tomcat has an 'guide' of a maximum of 80 characters for line
length. It has been a while since we reviewed this and as we are looking
at style rules...

As a starting point what do folks think of the following options:

Line length:
 80 - the current
100 -
120 -

Strictness
Informal - the current
Enforce  - Use checkstyle to enforce whatever limit is chosen


Pros for longer lines:
- code easier to read

Cons
- diffs may wrap in mail clients
- harder to work with code in a pure text interface (particularly if
that interface is limited in width to 80 chars)


Comment
- With increasing screen resolution I expect IDEs to manage widths upto
120 or possibly even more
- Few (any?) folks will ever need to work in a pure text UI where the
line length is limited
- My only concern is readability of diffs

I have no strong preference on line length but if we do opt for a longer
length I'd like to see checkstyle enforce the limit.

Mark

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

Reply via email to