Browse Source

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.
pull/3521/head
Nik Clayton 3 years ago committed by GitHub
parent
commit
ca9b171868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .editorconfig

6
.editorconfig

@ -7,5 +7,11 @@ indent_style = space
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = 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}] [*.{yml,yaml}]
indent_size = 2 indent_size = 2

Loading…
Cancel
Save