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

RCS1123: Add parentheses according to operator precedence

Property Value
Id RCS1123
Category Readability
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

if (x || y && z) // RCS1123
{
}

Code with Fix

if (x || (y && z))
{
}

See Also

(Generated with DotMarkdown)