From ce9f121ce64a2c3dbee1cf30bd201bb7441398ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 17 Apr 2017 13:32:48 +0200 Subject: [PATCH] Misra: Fix rule 5.3 --- addons/misra.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/misra.py b/addons/misra.py index 8e9a53cdf..945e04bee 100644 --- a/addons/misra.py +++ b/addons/misra.py @@ -277,8 +277,9 @@ def misra_5_3(data): scopeVars = {} for var in data.variables: if var.isArgument: + # TODO continue - if not var.nameToken.scopeId in scopeVars: + if not var.nameToken.scope in scopeVars: scopeVars[var.nameToken.scope] = [] scopeVars[var.nameToken.scope].append(var)