.editorconfig 1.5 KB

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