We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 785f324 commit 029056bCopy full SHA for 029056b
1 file changed
addons/misra.py
@@ -2702,6 +2702,8 @@ def misra_13_4(self, data):
2702
continue
2703
if not token.astParent:
2704
2705
+ if (token.astOperand1 is None) or (token.astOperand2 is None):
2706
+ continue
2707
if token.astOperand1.str == '[' and token.astOperand1.previous.str in ('{', ','):
2708
2709
if not (token.astParent.str in [',', ';', '{']):
0 commit comments