# This .editorconfig file specifies conventions for character set, spacing, indentation etc.
# followed by the source code in this project.
#
# When contributing code, please use an editor that supports .editorconfig
# https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# Let the corresponding language formatters deal with indent size
[{{*.{ex,exs,erl,c,h,rs,cmake,cmake.in,stderr,ts,md,plist},CMakeLists.txt,Cargo.lock}}]
indent_size = unset

[*.{drawio,svg}]
trim_trailing_whitespace = unset
insert_final_newline = unset
indent_size = unset

[Makefile]
# Make requires tab.
indent_style = tab

[*.cddl]
indent_size = unset

# Ignore paths
[/implementations/rust/ockam/ockam_command/static/**]
charset = ""
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[implementations/swift/ockam/ockam_app/Ockam.xcodeproj/**]
charset = ""
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[*.swift]
charset = ""
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
