From a9f39d19c96524dfb52264bb1573f1d1ec00a2ca Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 8 Mar 2017 11:41:08 +0100 Subject: [PATCH] #321 - Provide importorder file and provide guidance for IntelliJ users. Remove intellij-formatting.jar to avoid ambiguity in favor of the IntelliJ Eclipse Code Formatter plugin. --- etc/ide/README.md | 17 +++++++++++++++++ etc/ide/intellij-formatting.jar | Bin 1542 -> 0 bytes etc/ide/springdata.importorder | 8 ++++++++ 3 files changed, 25 insertions(+) create mode 100644 etc/ide/README.md delete mode 100644 etc/ide/intellij-formatting.jar create mode 100644 etc/ide/springdata.importorder diff --git a/etc/ide/README.md b/etc/ide/README.md new file mode 100644 index 00000000..32c74a94 --- /dev/null +++ b/etc/ide/README.md @@ -0,0 +1,17 @@ +# Spring Data Code Formatting Settings + +This directory contains `eclipse-formatting.xml` and `springdata.importorder` settings files to be used with Eclipse and IntelliJ. + +## Eclipse Setup + +Import both files in Eclipse through the Preferences dialog. + +## IntelliJ Setup + +Use the IntelliJ [Eclipse Code Formatter](https://plugins.jetbrains.com/plugin/6546-eclipse-code-formatter) plugin to configure code formatting and import ordering with the newest Eclipse formatter version. + +Additionally, make sure to configure your import settings in `Editor -> Code Style -> Java` with the following explicit settings: + +* Use tab character indents +* Class count to use import with `*`: 10 +* Names count to use static import with `*`: 1 diff --git a/etc/ide/intellij-formatting.jar b/etc/ide/intellij-formatting.jar deleted file mode 100644 index eea8ae54f77aec464948ba23b55e94ce6e6aef0f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1542 zcmWIWW@h1H0D-I&V`ne}N^moshE z^HY;PCfatU)tx3CU0jgkN5X+Ue^5btcGma z*%{yW*BGB)!*@+e^I3DWJ)WymMyzMJ@3;hMyf=Zy=BTb?eq%{k(4FrdE^QonBWmHcSk7sHblH^+9h?|0?AtYn9)l`%)w6bI zehVpxJZS$DRiW1^wf?Dz+p9z!<&{(B9olK=cj=+i^7W1m z%JT#FWX!C-Es!@5SaZB%Z>jytLjCGVcI;|7{Vo%CFg#+&?zvZf@N(!(z7cfJxB6<(t@F{-r%kGtzT_`x zlg44aKrnsdS>|s^jakwUnD=u?S${Cw|6QF^&Y11OjryA$dQT7hI?{IieZjviS01rl z|B%hGagrH-V8(M*uEl%5JFMOuv~K>IwSLd-1H9QeO8gzu_c1Xryc9#u1?X8u4wwt_ z3raHc^NRIBxj_${cl3&rGg5O?i$OUdv~M?GlY@v$^}a{XzIBy}*(4S8@`~tON!fho zgxYVeH7@_}9d!|YZE0M*=~Jf38Wa6fH)Z;NGc!fLbW442`R#6L`Jqi7Mi2Lf1+{pH zayqEZ{djH?Z$j%r8EtbRetq85!)ynQ=9M}I#3E%)@Sya!i%ujXW&Gj)z= ztvk~5+w$83r6vat`|y|VwX2rYE1i@Ed2qMukwsI1&fgEjh;05V7d4yn0%bGvic1o6 za#Bc*^?*FJYoXsWas$pBkaQuR0mQEG6_<;pqnHMl=aLjNzKX0 z^iuG2adlL1&&f|p%uxtVEhzz(9mN6Oj7(e%xQiyBek6cY_CN|MMkWykL{WtteW0QW z0d#>(B+Y0A7swGXb3l=e97>?bMgU`GLQ#)w7AQ23!wD2t2q40O7RtzBfh`~rTH}CP X2?Q%E8%Q}T5QZ}{Fw6vMU|;|M&8Ib8 diff --git a/etc/ide/springdata.importorder b/etc/ide/springdata.importorder new file mode 100644 index 00000000..a974f58e --- /dev/null +++ b/etc/ide/springdata.importorder @@ -0,0 +1,8 @@ +#Organize Import Order +#Mon Nov 14 09:58:12 CET 2016 +5=com +4=org +3=javax +2=java +1= +0=\#