From 65335c7c09ef7f0ec04cb41bc6f8dfc1cbbc0f80 Mon Sep 17 00:00:00 2001 From: Andrey Shcheglov Date: Fri, 10 Jun 2022 10:03:47 +0300 Subject: [PATCH] Enforce the import order consistent with the project policy (#1355) ### 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.*`. * Additionally, `kotlin.code.style` property set to `official` in `pom.xml`. * See for more details. --- .editorconfig | 2 +- pom.xml | 1 + 2 files changed, 2 insertions(+), 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 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