Skip to content

Commit 13183d7

Browse files
feat: Add in default roslynator guidelines (#269)
Contributes to #83 It doesn't sound like we want to take on a dep to roslynator itself yet, but I think this is a good step just to add in some defaults to the `.editorconfig`
1 parent f649b87 commit 13183d7

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.editorconfig

+31-1
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,34 @@ dotnet_naming_rule.properties_pascal_case.severity = warning
137137
dotnet_naming_rule.properties_pascal_case.symbols = all_properties
138138
dotnet_naming_rule.properties_pascal_case.style = pascal_case_style
139139
dotnet_naming_symbols.all_properties.applicable_kinds = property
140-
dotnet_naming_symbols.all_properties.applicable_accessibilities = *
140+
dotnet_naming_symbols.all_properties.applicable_accessibilities = *
141+
142+
###############################
143+
# Roslynator Defaults #
144+
###############################
145+
# RCS1001: Add braces (when expression spans over multiple lines).
146+
dotnet_diagnostic.RCS1001.severity = error
147+
148+
# RCS1003: Add braces to if-else (when expression spans over multiple lines).
149+
dotnet_diagnostic.RCS1003.severity = error
150+
151+
# RCS1007: Add braces
152+
dotnet_diagnostic.RCS1007.severity = error
153+
154+
# RCS1044: Remove original exception from throw statement
155+
dotnet_diagnostic.RCS1044.severity = error
156+
157+
# RCS1123: Add parentheses according to operator precedence.
158+
dotnet_diagnostic.RCS1123.severity = error
159+
160+
# RCS1037: Remove trailing white-space.
161+
dotnet_diagnostic.RCS1037.severity = none
162+
163+
# RCS1036: Remove redundant empty line.
164+
dotnet_diagnostic.RCS1036.severity = none
165+
166+
# RCS1170: Use read-only auto-implemented property.
167+
dotnet_diagnostic.RCS1170.severity = warning
168+
169+
# RCS1213: Remove unused member declaration.
170+
dotnet_diagnostic.RCS1213.severity = warning

0 commit comments

Comments
 (0)