[cvsnt] Run Eclipse formatter on check in
alex.panchenko at gmail.com
Tue Mar 4 02:12:44 GMT 2008
On 3/3/08, Nick Radov <nradov at axolotl.com> wrote:
> Not everyone is using Eclipse. We would like to integrate the Eclipse
> formatter with CVSNT in order to maintain a consistent code style
> of which editor each developer is using.
If each developer have its own version of code - they will be getting merge
conflicts if they modify the same file, diffs will be unusable, etc.
It is organizational problem - so it is not correctly to solve it by
It would be better to do some of the following:
a) document codу style and publish formatter settings for most popular IDEs,
so the user just import it.
b) force all developers to use the same tools with identical code style
c) add some tool checking format rules (e.g. checkstyle) to the nightly
The triggers from commitinfo are executed beforу the commit, but I am not
sure if it is supported if they would modify commited files. It is designed
so it can just reject files if they do not meet some criteria.
More information about the cvsnt