Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ ij_continuation_indent_size = 8
indent_style = tab
max_line_length = off
ij_continuation_indent_size = 8 # IntelliJ default
# Imports
ij_java_imports_layout = java.**, |, javax.**, |, *, |, de.hysky.**, |, $*
ij_java_class_count_to_use_import_on_demand = 999
ij_java_names_count_to_use_import_on_demand = 999
# Wrapping and Braces
ij_java_keep_simple_blocks_in_one_line = true
ij_java_keep_simple_classes_in_one_line = true
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ test {
spotless {
java {
removeUnusedImports()
importOrder('java', 'javax', '', 'de.hysky')
//indentWithTabs() // TODO: turn on when more files are converted to tabs
trimTrailingWhitespace()
endWithNewline()
Expand Down
9 changes: 9 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,19 @@
</module>

<!-- Ensure all imports are ship shape -->
<module name="AvoidStarImport"/>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>

<module name="ImportOrder">
<property name="groups" value="java,javax,*,de.hysky"/>
<property name="ordered" value="true"/>
<property name="separated" value="true"/>
<property name="option" value="bottom"/> <!-- Put static imports below regular imports -->
<property name="sortStaticImportsAlphabetically" value="true"/>
</module>

<module name="SeparatorWrap">
<property name="tokens" value="DOT,ELLIPSIS,AT"/>
<property name="option" value="nl"/>
Expand Down
Loading