Code formatting on delivery
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
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.
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
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.
1 vote