Repository navigation
Expand file tree
/
Copy pathTerminal.Gui.Editor.sln.DotSettings
More file actions
107 lines (95 loc) · 11.7 KB
/
Copy pathTerminal.Gui.Editor.sln.DotSettings
File metadata and controls
107 lines (95 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!--
Team-shared ReSharper / Rider settings for tui-cs/Editor.
Committed alongside .editorconfig. Edit in Rider via "Settings | Editor | Code Style"
and "Settings | Editor | Code Cleanup", then "Save to: This Solution Team-Shared".
Most C# style is in .editorconfig (dotnet format reads it). This file holds:
- the Code Cleanup profile contributors run via `jb cleanupcode` and the Stop hook
- ReSharper-specific knobs that have no .editorconfig equivalent
- ReSharper inspection severities elevated to error so CI catches drift
See CLAUDE.md "Coding standards" for the human-readable rules.
-->
<!-- =============================================================== -->
<!-- Cleanup profile: "TG.Editor Full Cleanup" -->
<!-- Used by `jb cleanupcode`, the Claude Code Stop hook, and CI. -->
<!-- -->
<!-- MODERN FORMAT: ReSharper / Rider / `jb` 2024+ store each cleanup -->
<!-- profile as ONE string holding a serialized <Profile> document. -->
<!-- The old per-task `…/=Name/CSReformatCode/@EntryIndexedValue` -->
<!-- key layout is silently ignored by 2026.1.1 (profile vanishes -->
<!-- from the IDE and `jb` can't resolve it). Edit this profile in -->
<!-- Rider via Settings | Editor | Code Cleanup, then "Save to: This -->
<!-- Solution Team-Shared" — Rider rewrites this string in-place. -->
<!-- -->
<!-- Verbatim Terminal.Gui "Full Cleanup" (this repo adopts TG house -->
<!-- style) with ONE mandated divergence: the auto-property rewrites -->
<!-- CSUseAutoProperty (set False) and CSMakeAutoPropertyGetOnly -->
<!-- (removed) are OFF — they destroy intentional C# 13 `field`-backed -->
<!-- properties (CLAUDE.md "Properties"; ReSharper bug warning). -->
<!-- -->
<!-- Deliberately ABSENT (and must stay absent), matching TG: -->
<!-- • CSUpdateFileHeader — with no header template configured it -->
<!-- STRIPS leading comments, including the mandated -->
<!-- `// Claude - <model>` / `// CoPilot - <model>` attribution -->
<!-- headers (CLAUDE.md "Testing convention"). -->
<!-- • CSReorderTypeMembers — TG keeps member reordering in a -->
<!-- separate "File Layout" profile so routine cleanup never -->
<!-- churns the hand-curated layout / field placement -->
<!-- (CLAUDE.md "Type and file layout", "Field placement"). -->
<!-- =============================================================== -->
<s:String x:Key="/Default/CodeStyle/CodeCleanup/RecentlyUsedProfile/@EntryValue">TG.Editor Full Cleanup</s:String>
<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">TG.Editor Full Cleanup</s:String>
<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=TG_002EEditor_0020Full_0020Cleanup/@EntryIndexedValue"><?xml version="1.0" encoding="utf-16"?><Profile name="TG.Editor Full Cleanup"><AspOptimizeRegisterDirectives>True</AspOptimizeRegisterDirectives><CSCodeStyleAttributes ArrangeVarStyle="True" ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" ArrangeArgumentsStyle="True" RemoveRedundantParentheses="True" AddMissingParentheses="True" ArrangeBraces="True" ArrangeAttributes="True" ArrangeCodeBodyStyle="True" ArrangeTrailingCommas="True" ArrangeObjectCreation="True" ArrangeDefaultValue="True" ArrangeNamespaces="True" ArrangeNullCheckingPattern="True" /><RemoveCodeRedundanciesVB>True</RemoveCodeRedundanciesVB><Xaml.RedundantFreezeAttribute>True</Xaml.RedundantFreezeAttribute><Xaml.RemoveRedundantModifiersAttribute>True</Xaml.RemoveRedundantModifiersAttribute><Xaml.RemoveRedundantNameAttribute>True</Xaml.RemoveRedundantNameAttribute><Xaml.RemoveRedundantResource>True</Xaml.RemoveRedundantResource><Xaml.RemoveRedundantCollectionProperty>True</Xaml.RemoveRedundantCollectionProperty><Xaml.RemoveRedundantAttachedPropertySetter>True</Xaml.RemoveRedundantAttachedPropertySetter><Xaml.RemoveRedundantStyledValue>True</Xaml.RemoveRedundantStyledValue><Xaml.RemoveRedundantNamespaceAlias>True</Xaml.RemoveRedundantNamespaceAlias><Xaml.RemoveForbiddenResourceName>True</Xaml.RemoveForbiddenResourceName><Xaml.RemoveRedundantGridDefinitionsAttribute>True</Xaml.RemoveRedundantGridDefinitionsAttribute><Xaml.RemoveRedundantUpdateSourceTriggerAttribute>True</Xaml.RemoveRedundantUpdateSourceTriggerAttribute><Xaml.RemoveRedundantBindingModeAttribute>True</Xaml.RemoveRedundantBindingModeAttribute><Xaml.RemoveRedundantGridSpanAttribut>True</Xaml.RemoveRedundantGridSpanAttribut><XMLReformatCode>True</XMLReformatCode><RemoveCodeRedundancies>True</RemoveCodeRedundancies><CSUseAutoProperty>False</CSUseAutoProperty><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSArrangeQualifiers>True</CSArrangeQualifiers><CSFixBuiltinTypeReferences>True</CSFixBuiltinTypeReferences><HtmlReformatCode>True</HtmlReformatCode><VBOptimizeImports>True</VBOptimizeImports><VBShortenReferences>True</VBShortenReferences><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings></CSOptimizeUsings><CSShortenReferences>True</CSShortenReferences><VBReformatCode>True</VBReformatCode><VBFormatDocComments>True</VBFormatDocComments><CSReformatCode>True</CSReformatCode><CSharpFormatDocComments>True</CSharpFormatDocComments><FormatAttributeQuoteDescriptor>True</FormatAttributeQuoteDescriptor></Profile></s:String>
<!-- IMPORTANT: CSUseAutoProperty is OFF. -->
<!-- ReSharper has bugs around the C# 13 `field` keyword: it offers / applies -->
<!-- "convert to auto-property" rewrites that destroy intentional `field`-backed -->
<!-- properties. We hand-write `field`-backed properties (see CLAUDE.md "Properties"); -->
<!-- cleanup must not undo that work. -->
<!-- =============================================================== -->
<!-- Code style — items without a .editorconfig equivalent. -->
<!-- =============================================================== -->
<!-- var: built-ins yes, everything else no. Mirrors .editorconfig. -->
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/ForBuiltInTypes/@EntryValue">UseVar</s:String>
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/ForSimpleTypes/@EntryValue">UseExplicitType</s:String>
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/ForOtherTypes/@EntryValue">UseExplicitType</s:String>
<!-- Expression-bodied members: properties yes, methods no (see CLAUDE.md). -->
<s:String x:Key="/Default/CodeStyle/CSharpCodeStyle/PreferredMethodBodyStyle/@EntryValue">block_body</s:String>
<s:String x:Key="/Default/CodeStyle/CSharpCodeStyle/PreferredAccessorBodyStyle/@EntryValue">expression_body</s:String>
<s:String x:Key="/Default/CodeStyle/CSharpCodeStyle/PreferredConstructorBodyStyle/@EntryValue">block_body</s:String>
<s:String x:Key="/Default/CodeStyle/CSharpCodeStyle/PreferredOperatorBodyStyle/@EntryValue">block_body</s:String>
<s:String x:Key="/Default/CodeStyle/CSharpCodeStyle/PreferredLambdaBodyStyle/@EntryValue">expression_body</s:String>
<!-- Object/collection initializers: prefer collection expressions [...] -->
<s:String x:Key="/Default/CodeStyle/CSharpCodeStyle/PreferredObjectCreationStyle/@EntryValue">target_typed</s:String>
<!-- Blank lines around control blocks (CLAUDE.md "Blank line before return/break"). -->
<s:Int64 x:Key="/Default/CodeStyle/CSharpFormat/BLANK_LINES_AROUND_REGION/@EntryValue">1</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CSharpFormat/BLANK_LINES_INSIDE_REGION/@EntryValue">1</s:Int64>
<s:String x:Key="/Default/CodeStyle/CSharpFormat/PLACE_SIMPLE_ACCESSOR_ON_SINGLE_LINE/@EntryValue">True</s:String>
<s:String x:Key="/Default/CodeStyle/CSharpFormat/SIMPLE_EMBEDDED_STATEMENT_STYLE/@EntryValue">DO_NOT_CHANGE</s:String>
<!-- XML doc tags: render `<see cref="X" />` with a space before `/>`. -->
<s:Boolean x:Key="/Default/CodeStyle/CSharpFormat/XMLDOC_FORMAT_ON_TYPING/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CSharpFormat/XMLDOC_KEEP_USER_LINEBREAKS/@EntryValue">True</s:Boolean>
<!-- =============================================================== -->
<!-- Inspection severities: elevate house-style violations. -->
<!-- =============================================================== -->
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertIfStatementToReturnStatement/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InvertIf/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ReplaceWithFieldKeyword/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToAutoProperty/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToAutoPropertyWhenPossible/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToAutoPropertyWithPrivateSetter/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseCollectionExpression/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeObjectCreationWhenTypeNotEvident/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeObjectCreationWhenTypeEvident/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantNameQualifier/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantUsingDirective/@EntryIndexedValue">WARNING</s:String>
<!-- =============================================================== -->
<!-- Folder excludes: never run cleanup on lifted upstream files. -->
<!-- =============================================================== -->
<s:Boolean x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=third_005Fparty/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/GrammarAndSpelling/GrammarChecking/Exceptions/=ans/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=foldings/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Goldens/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=ONLCR/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=slnx/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=unindents/@EntryIndexedValue">True</s:Boolean>
</wpf:ResourceDictionary>