.editorconfig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # see http://EditorConfig.org
  2. # This is the file in the root of the project.
  3. # For sub folders you can have other files that override only some settings.
  4. # For these, this settings should be false.
  5. root=true
  6. [*]
  7. max_line_length=120
  8. # use spaces, not tabs.
  9. indent_style=space
  10. indent_size=4
  11. [*.yml]
  12. max_line_length=150
  13. charset=utf-8
  14. # Trimming is good for consistency
  15. trim_trailing_whitespace=true
  16. # I've seen cases where a missing new_line was ignored on *nix systems.
  17. # Never again with this setting!
  18. insert_final_newline=true
  19. [*.properties]
  20. # Exception for Java properties files should be encoded latin1 (aka iso8859-1)
  21. charset=latin1
  22. [*.{cmd,bat}]
  23. # batch files on Windows should stay with CRLF
  24. end_of_line=crlf
  25. [*.md]
  26. trim_trailing_whitespace=false
  27. [.drone.yml]
  28. indent_size=2
  29. [*.{kt,kts}]
  30. # IDE does not follow this Ktlint rule strictly, but the default ordering is pretty good anyway, so let's ditch it
  31. ktlint_code_style = android_studio
  32. insert_final_newline = true
  33. ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than=unset
  34. ktlint_function_signature_body_expression_wrapping=multiline
  35. ktlint_standard_import-ordering = disabled
  36. ktlint_standard_wrapping = enabled
  37. ij_kotlin_allow_trailing_comma = false
  38. ij_kotlin_allow_trailing_comma_on_call_site = false