| Summary: | [formatter] Eclipse Formatter Not Obeying Own Rules | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Nobody - feel free to take it <nobody> | ||||
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, mateusz.matela, noopur_gupta | ||||
| Version: | 4.3 | ||||||
| Target Milestone: | 4.5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 233867 [details]
Eclipse Formatter
Probably a duplicate of bug 303519 or bug 349535? This problem no longer occurs after the formatter redesign. *** This bug has been marked as a duplicate of bug 303519 *** |
Hi, My Eclipse formatter is currently set to wrap after 120 characters. However, on formatting, it will sometimes keep lines over that amount. For example, if you format the following piece of code with the attached formatter, it will return as being valid on 1 line. Checkstyle immediately has a heart attack, and says it's over 120 characters (which is correct). Oddly, if I set it to wrap after 110 characters, it will in fact wrap at a point that would be valid for that many characters. :S public boolean hasMinInputs() { return (hasSecurityType() || hasTriplet() || hasCustodianCash() || hasCustodianStock() || hasHoldingId() || hasImagineSite()); } Thanks, Michael