I agree. We should have a consistent formatting
style. On the codegen side we've used a style, but it has not
been judiciously applied throughout. Furthermore, we use Xtend
extensively, so we should apply a style there as well.
Would the idea be to automatically enforce the chosen
style, perhaps using the Papyrus formatter?
If so, can it be done automatically, say before committing,
or after pushing to gerrit?
Does the Papyrus formatter work with Xtend as well or just
Java?
I've played a bit with the idea of git hooks to attempt to
do this automatically, and in fact, this
https://github.com/michalrus/git-hooks-code-autoformat could
be used, but it still requires the manual creation of a link
by the developer (because the contents of .git/hooks are not
pushed).
I'm not familiar with Sonar or checkstyle, but from what I
read they only analyze code rather than actually reformat it,
isn't that right?
Christian, we don't have an Oomph setup for developers.
Wouldn't we need that in order to apply such settings? I think
it would be a good idea to create an Oomph setup.
Unfortunately I'm not familiar with this.