ecformat 0.2.0

command line tool to keep files correct in respect of your EditorConfig
Documentation
# SPDX-FileCopyrightText: NONE
#
# SPDX-License-Identifier: CC0-1.0

root = true

# Default for all file types
[*]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
# Use the same language as for the LTeX+ VSCodium extension
spelling_language = en-US

# Tree like formats with only 2 spaces, because of deeper structures.
[*.{bib,json,html,xml,xhtml,yml,yaml}]
indent_size = 2

[*.md]
# Markdown has heavily context specific indentations.
# For example, the indentation in lists depend on the length of the list marker
# (such as '- ' or '100. '), at least in the GitHub Markdown flavor:
# https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#nested-lists
# Therefore, pressing tab should insert a single space to encourage situative accurate indentations.
indent_size = 1

# You should NOT modify this file with your editor,
# but if you do it anyway use the correct formatting.
[Cargo.lock]
indent_size = 1