cancel
Showing results for 
Search instead for 
Did you mean: 

Coding style for non-Java files (use tabs as spaces?)

nico_rehwaldt
Champ in-the-making
Champ in-the-making
I wonder if there is any particular coding style for non-Java classes in the Activiti project.

My actual concern is how tabs should be handled in non-Java files, e.g. xml documents. The Activiti coding style for java (http://svn.codehaus.org/activiti/activiti/trunk/eclipse/) uses tabs-as-spaces and it would be nice to have the same policy for xml documents, too. I do not see that anywhere defined though.

Regards,
Nico
3 REPLIES 3

bernd_ruecker
Champ in-the-making
Champ in-the-making
+1! Could you maybe propose a style to the code base? Any objections?

tombaeyens
Champ in-the-making
Champ in-the-making
spaces always has preference.
and 2 space indents.
also for non java files like xml files.

for those places where we didn't do it properly, switching to spaces might be a pain to track real differences.  so i think that a general change and replace operation could bring more hassle then it solves.

nevertheless it's certainly good if everyone could set their indents to 2 spaces and no tabs.

nico_rehwaldt
Champ in-the-making
Champ in-the-making
Thanks for the clarification!