svls
svls copied to clipboard
Question about oneline IF
Hi,
I wonder if this warning is incorrect :

All if seem to be detect as multiline, I got this issue on every oneline if Is this the expect behavior ?
Thank you :)
This is expected. The if(o_axis_tlast_p) ovg_axis_tkeep_p <= 0; is counted as two lines.
This rule intends the following case.
z <= 1 seems to be in if statement, but not actually.
if(x)
y <= 0;
z <= 1; // this is not in if statement
So if statement should have begin/end except for the following case:
if (x) y <= 0;
@nikhenri Would you close this if you're satisfied?