https://github.com/scijava/scijava-coding-style
SciJava Coding Styles
https://github.com/scijava/scijava-coding-style
Last synced: 9 months ago
JSON representation
SciJava Coding Styles
- Host: GitHub
- URL: https://github.com/scijava/scijava-coding-style
- Owner: scijava
- Created: 2019-03-07T15:27:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-20T19:38:24.000Z (about 1 year ago)
- Last Synced: 2025-03-28T02:18:50.998Z (10 months ago)
- Size: 67.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/scijava/scijava-coding-style/actions/workflows/build-main.yml)
# scijava-coding-style
This Maven artifact contains Eclipse coding style settings, intended for use with `pom-scijava`.
There is also a `preferences.epf` you can import into the Eclipse IDE via _File > Import_.
## Installation
The parent POM of your project needs to be `pom-scijava` at version 28.0.0 or later.
## Usage
Code formatting for all java files can be done with the following command line:
```bash
$ mvn formatter:format
```
Sorting of java imports is supported as well:
```
$ mvn impsort:sort
```
## Configuration
Two coding styles are supported: `scijava` and `imglib2`.
The default setting is `scijava`.
To change this, set the `coding-style` property in your Maven POM. For example:
```
imglib2
```