From 8b6429cfa9680010eb3f700e4ce03057f31b3d5d Mon Sep 17 00:00:00 2001 From: Andrey Shcheglov Date: Thu, 9 Jun 2022 19:19:53 +0300 Subject: [PATCH 1/2] Enforce the import order consistent with the project policy ### What's done: * As of now, there's the following order of imports: * `android.*`, `androidx.*`, `com.android.*`, * `org.cqfn.diktat.*`, * all other imports, * `java.*`, `javax.*`, * `kotlin.*`, `kotlinx.*`. --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 97dc2c0bdb..a54359c8a0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -49,7 +49,7 @@ ij_kotlin_field_annotation_wrap = split_into_lines ij_kotlin_finally_on_new_line = false ij_kotlin_if_rparen_on_new_line = true ij_kotlin_import_nested_classes = false -ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^ +ij_kotlin_imports_layout = android.**,androidx.**,com.android.**,org.cqfn.diktat.**,*,java.**,javax.**,kotlin.**,kotlinx.**,^ ij_kotlin_insert_whitespaces_in_simple_one_line_method = true ij_kotlin_keep_blank_lines_before_right_brace = 2 ij_kotlin_keep_blank_lines_in_code = 2 From 47ff70d9b68357dd02068fbdb00522a55bb808dd Mon Sep 17 00:00:00 2001 From: Andrey Shcheglov Date: Thu, 9 Jun 2022 19:25:41 +0300 Subject: [PATCH 2/2] Enforce the official Kotlin code style via `pom.xml` ### What's done: * `kotlin.code.style` property set to `official`. * See for more details. --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index b3ba9f99aa..df3352fddf 100644 --- a/pom.xml +++ b/pom.xml @@ -44,6 +44,7 @@ UTF-8 1.6.21 true + official 1.3.3 0.45.2 5.8.2