Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

1.1 KB
Raw Blame
# Greclipse configuration approximating Google Java Format conventions for Groovy and Gradle files.
# Greclipse uses a different formatting engine, so formatting may not match google-java-format exactly.

# Use spaces rather than tabs.
org.eclipse.jdt.core.formatter.tabulation.char=space

# Google Java Style uses two spaces for block indentation.
org.eclipse.jdt.core.formatter.tabulation.size=2
org.eclipse.jdt.core.formatter.indentation.size=2

# Do not insert whitespace on otherwise-empty lines.
org.eclipse.jdt.core.formatter.indent_empty_lines=false

# Google Java Style uses at least four spaces for continuation lines.
groovy.formatter.multiline.indentation=4

# K&R-style braces.
groovy.formatter.braces.start=same
groovy.formatter.braces.end=next

# Google Java Style uses a 100-character column limit.
groovy.formatter.line.maxlength=100

# Wrap long Groovy list literals at approximately the same limit.
groovy.formatter.longListLength=100

# Idiomatic for Groovy/Gradle scripts. Change to false to preserve semicolons.
groovy.formatter.remove.unnecessary.semicolons=true