2018-09-26 12:31:06 +03:00
|
|
|
# .editorconfig
|
|
|
|
|
|
|
|
# see http://EditorConfig.org
|
|
|
|
|
2024-03-29 18:56:51 +03:00
|
|
|
# SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
|
2024-03-29 21:22:56 +03:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2024-03-29 18:56:51 +03:00
|
|
|
|
2018-09-26 12:31:06 +03:00
|
|
|
# This is the file in the root of the project.
|
2019-05-16 15:34:49 +03:00
|
|
|
# For sub folders you can have other files that override only some settings.
|
2018-09-26 12:31:06 +03:00
|
|
|
# For these, this settings should be false.
|
|
|
|
root=true
|
|
|
|
|
|
|
|
[*]
|
|
|
|
max_line_length=120
|
|
|
|
# use spaces, not tabs.
|
|
|
|
indent_style=space
|
|
|
|
indent_size=4
|
|
|
|
|
2021-02-24 14:09:18 +03:00
|
|
|
[*.yml]
|
|
|
|
max_line_length=150
|
|
|
|
|
2018-09-26 12:31:06 +03:00
|
|
|
charset=utf-8
|
|
|
|
|
|
|
|
# Trimming is good for consistency
|
|
|
|
trim_trailing_whitespace=true
|
|
|
|
# I've seen cases where a missing new_line was ignored on *nix systems.
|
|
|
|
# Never again with this setting!
|
|
|
|
insert_final_newline=true
|
|
|
|
|
|
|
|
[*.properties]
|
2019-05-16 15:34:49 +03:00
|
|
|
# Exception for Java properties files should be encoded latin1 (aka iso8859-1)
|
2018-09-26 12:31:06 +03:00
|
|
|
charset=latin1
|
|
|
|
|
|
|
|
[*.{cmd,bat}]
|
|
|
|
# batch files on Windows should stay with CRLF
|
|
|
|
end_of_line=crlf
|
|
|
|
|
|
|
|
[*.md]
|
|
|
|
trim_trailing_whitespace=false
|
2019-05-16 15:34:49 +03:00
|
|
|
|
|
|
|
[.drone.yml]
|
|
|
|
indent_size=2
|
2019-08-11 15:11:21 +03:00
|
|
|
|
|
|
|
[*.{kt,kts}]
|
|
|
|
# IDE does not follow this Ktlint rule strictly, but the default ordering is pretty good anyway, so let's ditch it
|
2023-05-13 20:36:14 +03:00
|
|
|
ktlint_standard_import-ordering = disabled
|
2023-01-24 14:01:30 +03:00
|
|
|
ij_kotlin_allow_trailing_comma = false
|
|
|
|
ij_kotlin_allow_trailing_comma_on_call_site = false
|