Permalink
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 793 Bytes

RCS1184: Format conditional expression (format ? and : on next line)

Property Value
Id RCS1184
Category Formatting
Default Severity Info
Enabled by Default -
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

bool x = (condition) ? // RCS1184
    a :
    b;

Code with Fix

bool x = (condition)
    ? a
    : b;

See Also

(Generated with DotMarkdown)