RCS0020: Format accessor's braces on a single line or multiple lines
Properties
| Property | Value |
|---|---|
| Default Severity | disabled by default |
| Minimum language version | - |
Examples
Example #1
diagnostic.cs
string Foo
{
get { return _foo; }
}
fix.cs
string Foo
{
get
{
return _foo;
}
}
Configuration
info
Option roslynator_accessor_braces_style is required to be set for this analyzer to work.
.editorconfig
# Format accessor's braces on single line or multiple lines
# Default value is multi_line
roslynator_accessor_braces_style = multi_line|single_line_when_expression_is_on_single_line