|
| 1 | +# SQLTriage — editorconfig |
| 2 | +# |
| 3 | +# Purpose: define ONE house style so new and edited code is consistent, |
| 4 | +# enforced by IDEs and `dotnet format`. This file is intentionally |
| 5 | +# NON-DISRUPTIVE: |
| 6 | +# * It does NOT mass-reformat the existing tree (that would be a 100+ |
| 7 | +# file whitespace-churn commit colliding with concurrent work). |
| 8 | +# * Style rule severities are `suggestion`/`silent`, NOT `warning`/ |
| 9 | +# `error`, so adding this file does NOT raise the `dotnet build` |
| 10 | +# warning count (CLAUDE.md code-quality rule 3) or retroactively |
| 11 | +# red-ball the build on pre-existing formatting drift. |
| 12 | +# * It applies naturally: files you touch get cleaned via IDE format / |
| 13 | +# `dotnet format <file>`; the backlog converges over time, no big-bang. |
| 14 | +# |
| 15 | +# The Basmalah header convention (CLAUDE.md, non-negotiable) is a project |
| 16 | +# rule, not an editorconfig concern — no rule here adds/removes/reorders |
| 17 | +# file headers. `dotnet format` does not touch comment content. |
| 18 | + |
| 19 | +root = true |
| 20 | + |
| 21 | +[*] |
| 22 | +charset = utf-8 |
| 23 | +end_of_line = crlf |
| 24 | +insert_final_newline = true |
| 25 | +trim_trailing_whitespace = true |
| 26 | +indent_style = space |
| 27 | + |
| 28 | +[*.{cs,razor}] |
| 29 | +indent_size = 4 |
| 30 | +# Most common style conventions; severity kept low on purpose (see header). |
| 31 | +dotnet_sort_system_directives_first = true |
| 32 | +dotnet_separate_import_directive_groups = false |
| 33 | +csharp_new_line_before_open_brace = all |
| 34 | +csharp_prefer_braces = true:suggestion |
| 35 | +csharp_style_namespace_declarations = file_scoped:suggestion |
| 36 | +dotnet_style_qualification_for_field = false:suggestion |
| 37 | +dotnet_style_qualification_for_property = false:suggestion |
| 38 | +csharp_style_var_for_built_in_types = false:silent |
| 39 | +csharp_style_var_when_type_is_apparent = true:silent |
| 40 | +dotnet_style_prefer_conditional_expression_over_return = true:silent |
| 41 | + |
| 42 | +[*.{json,yml,yaml}] |
| 43 | +indent_size = 2 |
| 44 | +trim_trailing_whitespace = true |
| 45 | + |
| 46 | +[*.{xml,xaml,csproj,props,targets}] |
| 47 | +indent_size = 2 |
| 48 | + |
| 49 | +[*.md] |
| 50 | +# Markdown: keep trailing whitespace (two-space line breaks are meaningful). |
| 51 | +trim_trailing_whitespace = false |
| 52 | + |
| 53 | +[*.{ps1,psm1}] |
| 54 | +indent_size = 4 |
0 commit comments