Kotlin - Enable trailing comma
This commit is contained in:
parent
64264ead68
commit
cf42b687e6
3 changed files with 6 additions and 4 deletions
|
@ -7,11 +7,13 @@ indent_style = space
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.{java,kt}]
|
||||||
# Disable wildcard imports
|
# Disable wildcard imports
|
||||||
[*.{java, kt}]
|
|
||||||
ij_kotlin_name_count_to_use_star_import = 999
|
ij_kotlin_name_count_to_use_star_import = 999
|
||||||
ij_kotlin_name_count_to_use_star_import_for_members = 999
|
ij_kotlin_name_count_to_use_star_import_for_members = 999
|
||||||
ij_java_class_count_to_use_import_on_demand = 999
|
ij_java_class_count_to_use_import_on_demand = 999
|
||||||
|
# Enable trailing comma
|
||||||
|
ktlint_disabled_rules=trailing-comma-on-call-site,trailing-comma-on-declaration-site
|
||||||
|
|
||||||
[*.{yml,yaml}]
|
[*.{yml,yaml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
|
@ -20,5 +20,5 @@ enum class Screen {
|
||||||
Note,
|
Note,
|
||||||
Done,
|
Done,
|
||||||
Back,
|
Back,
|
||||||
Finish
|
Finish,
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,8 +163,8 @@ class ScheduledStatusActivity :
|
||||||
visibility = item.params.visibility,
|
visibility = item.params.visibility,
|
||||||
scheduledAt = item.scheduledAt,
|
scheduledAt = item.scheduledAt,
|
||||||
sensitive = item.params.sensitive,
|
sensitive = item.params.sensitive,
|
||||||
kind = ComposeActivity.ComposeKind.EDIT_SCHEDULED
|
kind = ComposeActivity.ComposeKind.EDIT_SCHEDULED,
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue