This tool coordinate the difference of coding style of each developer.
This tool requires Java8+ and environment variable JAVA_HOME
.
After running the following command, the distribution directory is generated in build/install
.
$ gradlew install
To install this tool, move generated style-coordinator
directory under $HOME
.
Put style files in $HOME
.
File describing project standard style is named style-default.xml
.
File describing developer's favorite style is named style.xml
.
Add .gitattribute
in target project.
The following code block shows content of the file.
*.java filter=format
Run the following command.
If you specify an option --global
alternative to --local
, this configuration is available only under your repository.
$ git config --global filter.format.clean ~/style-coordinator/bin/style-coordinator style-default.xml
$ git config --global filter.format.smudge ~/style-coordinator/bin/style-coordinator style.xml
The file defined an open standard XML schema for describing coding style. You can export from Eclipse.