Skip to content
SciJava Coding Styles
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis
src/main/resources/eclipse-formatter-settings
.gitignore
.travis.yml
README.md
pom.xml

README.md

scijava-coding-style

This Maven artifact contains Eclipse coding style settings, intended for use with pom-scijava.

Installation

The parent POM of your project needs to be pom-scijava at version 27.0.0 or later.

Usage

Code formatting for all java files can be done with the following command line:

$ mvn formatter:format

Sorting of java imports is supported as well:

$ mvn impsort:sort

Configuration

Three coding styles are supported: imagej, imglib2 and scifio. The default setting is imagej. To change this set the coding-style property in you maven pom. For examle:

<properties>
    <coding-style>imglib2</coding-style>
</properties>
You can’t perform that action at this time.