Skip to main content

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

Thanks, Camille.

The Papyrus Oomph setup model includes the formatter profile, so it will also need to be updated.

While we're at it, perhaps this would be a good time to actually install the formatting profile and other settings into our source projects' .settings/ preferences, to ensure consistency?  Then all of these settings can be removed from the the Oomph setup, from the Wiki, etc.

Thanks,

Christian


On Aug 22, 2014, at 7:36 AM, LETAVERNIER Camille <Camille.LETAVERNIER@xxxxxx> wrote:

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
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev


Back to the top