swagger_generator_flutter/.editorconfig

29 lines
864 B
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 这是一个顶级配置文件,停止向父目录查找
root = true
# === 全局通用设置 (所有文件) ===
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# === Dart 文件专用设置 ===
[*.dart]
# Very Good Analysis 默认开启了 lines_longer_than_80_chars
# 这里设置为 80确保 IDE 的标尺线 (Ruler) 与 Linter 报错一致
max_line_length = 80
# 虽然 [*] 设置了 indent_size但对 Dart 再次显式声明是好习惯
indent_size = 2
# === YAML/JSON 文件 (配置文件) ===
[*.{yaml,yml,json}]
indent_size = 2
# === Markdown 文件 (文档) ===
[*.md]
# Markdown 中行尾的双空格代表换行,所以不能自动去除尾部空格
trim_trailing_whitespace = false
max_line_length = 0 # 文档通常自动换行,不强制限制行宽