.editorconfig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # .editorconfig
  2. # see http://EditorConfig.org
  3. # SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
  4. # SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
  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. ktlint_code_style = android_studio
  34. # IDE does not follow this Ktlint rule strictly, but the default ordering is pretty good anyway, so let's ditch it
  35. ktlint_standard_import-ordering = disabled
  36. ktlint_standard_no-consecutive-comments = disabled
  37. ktlint_function_naming_ignore_when_annotated_with = Composable
  38. ij_kotlin_allow_trailing_comma = false
  39. ij_kotlin_allow_trailing_comma_on_call_site = false