You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+22-5
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,30 @@ You can install [Checkstyle] plugin to check the START-DB code.
36
36
### Formatting
37
37
38
38
START-DB code is automatically formatted with [spotless], backed by the Eclipse formatter. You can do the same in IntelliJ with the [Eclipse Code Formatter] so that you can apply the correct formatting directly in
39
-
your IDE. Or import it as IntelliJ code style setting.
40
-
41
-
1. Open **File > Settings/Preferences > Code Style > Java**
42
-
2. Gear icon > Import Scheme > Eclipse XML Profile
43
-
3. Navigate to the file `conventions/eclipse-formatter.xml`
39
+
your IDE.
40
+
41
+
**Java Code Style**
42
+
43
+
1. Open **File > Settings/Preferences > Plugins**
44
+
2. Install **Adapter for Eclipse Code Formatter** from marketplace
45
+
3. Open **File > Settings/Preferences > Adapter for Eclipse Code Formatter**
46
+
4. Click "Use the Eclipse Code Formatter"
47
+
5. Use default "Boundled Eclipse"
48
+
6. Under "Eclipse formatter config", select "Eclipse workspace/project
49
+
folder or config file"
50
+
7. Click "Browse", and navigate to the file `conventions/eclipse-formatter.xml`
51
+
8.**IMPORTANT** - make sure "Optimize Imports" is **NOT** selected.
52
+
9. Click "OK"
53
+
54
+
**Scala Code Style**
55
+
56
+
1. Open **File > Settings/Preferences > Code Style > Scala**
57
+
2. Change **Formatter** to `scalafmt`
58
+
3. Set **Configguration** to file `conventions/scalafmt.conf`
44
59
4. Click "OK"
45
60
61
+
Formatting will be triggered when running command `mvn package`. Or you can do format only with command `mvn spotless:apply`.
0 commit comments