It's all about the answers!

Ask a question

Code formatting on delivery


Peter Weller (39379) | asked Apr 02 '13, 7:48 p.m.
Hey all,

This was asked a couple of years back[1] but got no answer. I thought I would try again.

Is it possible (using the Eclipse RTC Client) to strongly encourage the developer to format their code against a given Eclipse Formatting profile?

Cheers,

One answer



permanent link
Lauren Hayward Schaefer (3.3k11727) | answered Apr 03 '13, 6:51 a.m.
JAZZ DEVELOPER
Hi Peter,
I don't know of a built-in precondition that does exactly what you're looking for.  There are preconditions that prohibit non-externalized Java strings and prohibit unused Java imports.  Perhaps you could write your own precondition.

Comments
1
Ralph Schoon commented Apr 03 '13, 7:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

And it would have to be a precondition that actually runs in the Eclipse client and not on the server. And it needs to be able to detect a file needs formatting before delivery.  That is how client preconditions actually can work.They access capabilities installed in the RTC client that provide information back that can be used to decide.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.