From ca9b1718687bbd608804e9e5a062496dbcddf45b Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Mon, 10 Apr 2023 14:26:10 +0200 Subject: [PATCH] Disable wildcard imports for Java and Kotlin files Out-of-the-box Android Studio will perform wildcard imports if the import list is >= 3. This is a lint failure. Adjust the default to 999 so that, in practice, wildcard imports never happen. --- .editorconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.editorconfig b/.editorconfig index 1b58baf45..47d830da0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,5 +7,11 @@ indent_style = space insert_final_newline = true trim_trailing_whitespace = true +# Disable wildcard imports +[*.{java, kt}] +ij_kotlin_name_count_to_use_star_import = 999 +ij_kotlin_name_count_to_use_star_import_for_members = 999 +ij_java_class_count_to_use_import_on_demand = 999 + [*.{yml,yaml}] indent_size = 2