Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] New formatter & clean-up profiles

Hi all,

 

 

As discussed a while ago, the Papyrus formatter has finally been changed to a more standard formatter. I’ve applied it (as well as a clean-up profile) on the current code base. Fortunately, it is almost compatible with the previous one, so even if almost all files have been modified, this is basically just a matter of white spaces (i.e. almost no new line breaks, except for very long generated lines (> 260 chars))

 

This shouldn’t lead to too many conflicts, and the conflicts will be easy to solve.

 

The new profiles are available on the repository under doc/DevelopperDocuments/templates. They are based on the default Eclipse profiles, with the following changes:

 

Formatter:

-          260 max char/line (Instead of 80)

-          No automatic line-join (if lines are shorter)

-          Allow 5 blank lines (Instead of 1)

 

Clean-up:

-          Force blocks on If/For/While...

-          Remove trailing white spaces

 

Regarding the Git line endings, nothing has changed yet

 

 

Regards,
Camille


Back to the top