Property | Value |
---|---|
Id | RR0043 |
Title | Extract expression from condition |
Syntax | if statement, while statement |
Span | condition |
Enabled by Default | ✓ |
if (x && y) // Select 'y'
{
}
if(x)
{
if (y)
{
}
}
if (x || y) // Select 'y'
{
}
if(x)
{
}
if (y)
{
}
(Generated with DotMarkdown)