misra.py: minor update
This commit is contained in:
parent
77318d0e14
commit
a705391054
|
@ -698,7 +698,7 @@ def misra_14_4(data):
|
||||||
for token in data.tokenlist:
|
for token in data.tokenlist:
|
||||||
if token.str != '(':
|
if token.str != '(':
|
||||||
continue
|
continue
|
||||||
if not token.astOperand1 or not (token.astOperand1.str in {'if', 'while'}):
|
if not token.astOperand1 or not (token.astOperand1.str in ['if', 'while']):
|
||||||
continue
|
continue
|
||||||
if not isBoolExpression(token.astOperand2):
|
if not isBoolExpression(token.astOperand2):
|
||||||
reportError(token, 14, 4)
|
reportError(token, 14, 4)
|
||||||
|
|
Loading…
Reference in New Issue