Skip to content

Commit 7be67c0

Browse files
committed
Adjustments to config
1 parent d00fca9 commit 7be67c0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ csharp_style_var_when_type_is_apparent = true:warning
1818
csharp_style_var_elsewhere = true:warning
1919

2020
# Keep us from collapsing multi-line constructs
21-
csharp_preserve_single_line_statements = false
21+
csharp_preserve_single_line_statements = true
2222
csharp_preserve_single_line_blocks = true
2323

2424
# Encourage conditional (ternary) expressions where appropriate

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ else
104104

105105
No multiple statements on one line.
106106

107+
But for 'if invoke needed' statements, it is totally okay with a one-line:
108+
```
109+
MethodInvoker mi = () => { fxb.dockControlBuilder.Init(fetch, null, false, "Query from AI", true); };
110+
if (InvokeRequired) Invoke(mi); else mi();
111+
```
112+
107113
## 5. Formatting & Layout
108114
- Auto-format before commit.
109115
- Avoid excess blank lines; use them to separate logical sections only.

0 commit comments

Comments
 (0)