Skip to content

Commit 80e8d02

Browse files
authored
Update README.md
1 parent 5ff0030 commit 80e8d02

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
# scijava-coding-style
2+
3+
This maven artifact contains Exclipse coding styles settings, that are intended to be used with `pom-scijava`.
4+
5+
## Installation
6+
**PLEASE NOTE: This PR needs to be merged first: https://github.com/scijava/pom-scijava/pull/85**
7+
8+
The parent pom of your project needs to be `pom-scijava`.
9+
10+
## Usage
11+
12+
Code formatting for all java files can be done with the following command line:
13+
```bash
14+
$ mvn formatter:format
15+
```
16+
Sorting of java imports is supported as well:
17+
```
18+
$ mvn impsort:sort
19+
```
20+
21+
## Configuration
22+
23+
Three coding styles are supported: `imagej`, `imglib2` and `scifio`.
24+
The default setting is `imagej`.
25+
To change this set the `coding-style` property in you maven pom. For examle:
26+
```
27+
<properties>
28+
<coding-style>imglib2</coding-style>
29+
</properties>
30+
```

0 commit comments

Comments
 (0)