RCS0028: Place new line after/before '?:' operator
Properties
Property | Value |
---|---|
Default Severity | disabled by default |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
var y = x ?
Foo() :
Bar();
fix.cs
var y = x
? Foo()
: Bar();
Configuration
info
Option roslynator_conditional_operator_new_line
is required to be set for this analyzer to work.
.editorconfig
# Place new line after/before '?:' operator
roslynator_conditional_operator_new_line = after|before