From 3eeda0ab01078a8f8d5508434784aa502ed83aa0 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 17 Nov 2014 10:37:38 +0000 Subject: [PATCH] Add eclipse formatting --- eclipse-code-formatter.xml | 295 ++++++++++++++++++++++++++++ src/main/asciidoc/contributing.adoc | 13 +- 2 files changed, 302 insertions(+), 6 deletions(-) create mode 100644 eclipse-code-formatter.xml diff --git a/eclipse-code-formatter.xml b/eclipse-code-formatter.xml new file mode 100644 index 00000000..ea51ccce --- /dev/null +++ b/eclipse-code-formatter.xml @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/asciidoc/contributing.adoc b/src/main/asciidoc/contributing.adoc index 49ec75c9..f314052d 100644 --- a/src/main/asciidoc/contributing.adoc +++ b/src/main/asciidoc/contributing.adoc @@ -14,12 +14,13 @@ given the ability to merge pull requests. None of these is essential for a pull request, but they will all help. They can also be added after the original pull request but before a merge. -* Use the Spring Framework code format conventions. If you use Eclipse and you follow - the ``Importing into eclipse'' instructions below you should get project specific - formatting automatically. You can also import formatter settings using the - `eclipse-code-formatter.xml` file from the `eclipse` folder. If using IntelliJ, you can - use the http://plugins.jetbrains.com/plugin/6546[Eclipse Code Formatter Plugin] - to import the same file. +* Use the Spring Framework code format conventions. If you use Eclipse + you can import formatter settings using the + `eclipse-code-formatter.xml` file from the + https://github.com/spring-cloud/build/tree/master/eclipse-coding-conventions.xml[Spring + Cloud Build] project. If using IntelliJ, you can use the + http://plugins.jetbrains.com/plugin/6546[Eclipse Code Formatter + Plugin] to import the same file. * Make sure all new `.java` files to have a simple Javadoc class comment with at least an `@author` tag identifying you, and preferably at least a paragraph on what the class is for.