-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.editorconfig
More file actions
153 lines (121 loc) · 5.23 KB
/
.editorconfig
File metadata and controls
153 lines (121 loc) · 5.23 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# All files
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
indent_style = space
tab_width = 4
# StyleCop Rules
[*.cs]
# SA1636: File header copyright text should match
# Disable this rule as it requires stylecop.json configuration
dotnet_diagnostic.SA1636.severity = none
# SA1309: Field names should not begin with underscore
# Project uses _fieldName convention for private fields
dotnet_diagnostic.SA1309.severity = none
# SA1313: Parameter names should begin with lower-case letter
# Project uses PascalCase for record parameters
dotnet_diagnostic.SA1313.severity = none
# SA1201/SA1202/SA1204: Member ordering rules
# Too disruptive to enforce across existing codebase
dotnet_diagnostic.SA1201.severity = none
dotnet_diagnostic.SA1202.severity = none
dotnet_diagnostic.SA1204.severity = none
# S3459: Unassigned auto-properties should be removed
# DTOs use object initializers pattern
dotnet_diagnostic.S3459.severity = none
# S1144: Remove unused private setters
# DTOs and models commonly have private setters for serialization
dotnet_diagnostic.S1144.severity = suggestion
# SA1402: File may only contain a single type
# Suppress for Contracts directory where DTOs are tightly coupled to interfaces
[src/Synaxis.Core/Contracts/*.cs]
dotnet_diagnostic.SA1402.severity = none
# SA1201: Elements should appear in the correct order
# Suppress for Contracts directory where DTOs/enums are defined alongside interfaces
dotnet_diagnostic.SA1201.severity = none
# MA0048: File name must match type name
# Suppress for Contracts directory where DTOs are tightly coupled to interfaces
dotnet_diagnostic.MA0048.severity = none
# SA1402: File may only contain a single type
# Suppress for DTO/model directories
[**/Models/**.cs]
dotnet_diagnostic.SA1402.severity = none
[**/Entities/**.cs]
dotnet_diagnostic.SA1402.severity = none
[**/Contracts/**.cs]
dotnet_diagnostic.SA1402.severity = none
dotnet_diagnostic.MA0048.severity = none
[**/Errors/**.cs]
dotnet_diagnostic.MA0048.severity = none
# Migrations - autogenerated files
# Suppress all StyleCop analyzers for migrations
[**/Migrations/**.cs]
dotnet_analyzer_diagnostic.category-StyleCop.severity = none
dotnet_diagnostic.SA1200.severity = none
dotnet_diagnostic.SA1137.severity = none
dotnet_diagnostic.SA1413.severity = none
dotnet_diagnostic.MA0048.severity = none
dotnet_diagnostic.S125.severity = none
dotnet_diagnostic.S1135.severity = none
dotnet_diagnostic.MA0026.severity = none
# Generated files (obj directory) - suppress all StyleCop analyzers for auto-generated files
[**/obj/**/*.cs]
dotnet_analyzer_diagnostic.category-StyleCop.severity = none
dotnet_diagnostic.SA1516.severity = none
dotnet_diagnostic.SA1518.severity = none
dotnet_diagnostic.SA1633.severity = none
# Specific generated file that causes SA1516
[**/GlobalUsings.g.cs]
dotnet_diagnostic.SA1516.severity = none
# All .g.cs generated files
[**/*.g.cs]
dotnet_diagnostic.SA1516.severity = none
# GlobalUsings.cs files - suppress StyleCop rules that don't apply to global usings files
[**/GlobalUsings.cs]
dotnet_diagnostic.SA1200.severity = none
dotnet_diagnostic.SA1633.severity = none
# InferenceGateway - suppress SA1402 for all files with multiple DTOs/models
[src/InferenceGateway/**/*.cs]
dotnet_diagnostic.SA1402.severity = none
dotnet_diagnostic.MA0048.severity = none
# Inference.Application - suppress SA1402 for Commands directory with multiple DTOs/records
[src/Inference/Inference.Application/Commands/*.cs]
dotnet_diagnostic.SA1402.severity = none
dotnet_diagnostic.MA0048.severity = none
# MA0002: IEqualityComparer<string> or IComparer<string> is missing
# Suppress for Contracts directory where Dictionary initialization is straightforward
dotnet_diagnostic.MA0002.severity = suggestion
# MA0002: IEqualityComparer<string> or IComparer<string> is missing
# Suppress for Models where Dictionary initialization is straightforward
[src/Synaxis.Core/Models/*.cs]
dotnet_diagnostic.MA0002.severity = suggestion
# Suppress SA1516 for WebApi project (generated GlobalUsings.g.cs triggers SA1516, suppression for obj directory not effective)
[src/InferenceGateway/WebApi/**/*.cs]
dotnet_diagnostic.SA1516.severity = none
# SA1018: Nullable type symbols should not be preceded by a space
# Disabled to allow SA1011 compliance for nullable array types (e.g., string[] ?)
dotnet_diagnostic.SA1018.severity = none
# SA1649: File name must match type name
# StyleCop has a bug with C# 9+ record declarations that causes AD0001 analyzer exceptions
# Suppress globally where records are already correctly named
dotnet_diagnostic.SA1649.severity = none
# Test Projects - suppress most StyleCop rules for test code
# Tests don't need the same strict style enforcement as production code
[tests/**/*.cs]
dotnet_diagnostic.SA1101.severity = error
dotnet_diagnostic.SA1116.severity = none
dotnet_diagnostic.SA1214.severity = none
dotnet_diagnostic.SA1413.severity = none
dotnet_diagnostic.SA1513.severity = none
dotnet_diagnostic.SA1515.severity = none
dotnet_diagnostic.SA1503.severity = none
dotnet_diagnostic.AsyncFixer01.severity = none
dotnet_diagnostic.MA0004.severity = none
dotnet_diagnostic.SA0001.severity = none