Skip to content

Commit

Permalink
style: Require trailing comma, and break lines
Browse files Browse the repository at this point in the history
Requiring trailing commas on multi-line lists of items (declarations
and call sites) reduces future repository churn when those lines are
changed, but introduces additional churn now.

Bite the bullet and make the change, as well as adjusting lines that
were too long / indented incorrectly.

The changes were performed automatically, using the `ktlintFormat` task.

Based on tuskyapp/Tusky#3968 by
https://github.com/tinsukE
  • Loading branch information
nikclayton committed Sep 4, 2023
1 parent cf26af2 commit a441576
Show file tree
Hide file tree
Showing 308 changed files with 2,341 additions and 2,260 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ insert_final_newline = true
trim_trailing_whitespace = true

# Disable wildcard imports
[*.{java, kt}]
[*.{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
# Require trailing comma
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true

[*.{yml,yaml}]
indent_size = 2
Loading

0 comments on commit a441576

Please sign in to comment.