# このプロジェクトで利用されるテキストファイルのスタイルルール。
# 全てのチェックインされるテキストファイルはこれらのルールに従う必要がある。
# <https://editorconfig.org/>
#
# SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com>
# SPDX-License-Identifier: AGPL-3.0-only

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.md]
# Markdown では末尾スペース 2 つが改行として扱われる。
trim_trailing_whitespace = true

# Protocol Buffers の公式スタイルガイドに準拠。
# <https://protobuf.dev/programming-guides/style/>
[*.proto]
indent_style = space
indent_size = 2

# YAML は 2 スペース以外のインデントを仕様レベルで読むことができない。
[*.{yml,yaml}]
indent_style = space
indent_size = 2

# terraform fmt は 2 スペース以外の指定ができない。
[*.tf]
indent_style = space
indent_size = 2
