# EditorConfig for OpenPass
# https://editorconfig.org

# Top-most EditorConfig file
root = true

# Default settings for all files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# Go files: use tabs for indentation
[*.go]
indent_style = tab
indent_size = 4

# Go module files
[go.mod]
indent_style = tab
indent_size = 4

[go.sum]
indent_style = tab
indent_size = 4

# YAML files: use 2 spaces for indentation
[*.{yaml,yml}]
indent_style = space
indent_size = 2

# JSON files: use 2 spaces for indentation
[*.json]
indent_style = space
indent_size = 2

# Markdown files: preserve trailing whitespace (for line breaks)
[*.md]
trim_trailing_whitespace = false
max_line_length = 80

# Makefile: use tabs
[{Makefile,makefile}]
indent_style = tab

# Shell scripts
[*.sh]
indent_style = space
indent_size = 2

# GitHub Actions workflow files
[.github/workflows/*.yml]
indent_style = space
indent_size = 2
