[SYSTEMML-137] Add Java format profile Add "SystemML Format" profile for standardizing Java formatting in project. Add Java Format and DML Format sections to Contributing to SystemML document.
Closes #505. Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/4f054a31 Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/4f054a31 Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/4f054a31 Branch: refs/heads/gh-pages Commit: 4f054a31040eb8fccfc9937634c09e9e4a0b17c9 Parents: ad78875 Author: Deron Eriksson <[email protected]> Authored: Thu May 18 18:16:09 2017 -0700 Committer: Deron Eriksson <[email protected]> Committed: Thu May 18 18:16:09 2017 -0700 ---------------------------------------------------------------------- contributing-to-systemml.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/4f054a31/contributing-to-systemml.md ---------------------------------------------------------------------- diff --git a/contributing-to-systemml.md b/contributing-to-systemml.md index c34a2a1..2b98dd0 100644 --- a/contributing-to-systemml.md +++ b/contributing-to-systemml.md @@ -202,3 +202,21 @@ previously pushed from a different branch, one simple solution is to delete the branch and perform the `subtree` command again. git push origin --delete gh-pages + + +## Code Format + +### Java Code Format + +Java in SystemML should be formatted using a standard format. The "SystemML Format" at +`dev/code-style/systemml-style.xml` can be imported into Eclipse and IntelliJ for this +purpose. + +No trailing whitespace is preferred. IDEs such as Eclipse and IntelliJ can be configured +for this option. + + +### DML Code Format + +DML in SystemML should be formatted according to a standard format. Indentation in DML +files should be two spaces.
