utils/check-package: report := that appends to variables

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Yann E. MORIN 2019-10-26 10:46:01 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 9bdc27d8a7
commit 1e03a2e89e

View File

@ -126,7 +126,9 @@ class OverriddenVariable(_CheckFunction):
self.conditionally_set.append(variable)
return
if self.CONCATENATING.search(text):
return
return ["{}:{}: immediate assignment to append to variable {}"
.format(self.filename, lineno, variable),
text]
if self.USUALLY_OVERRIDDEN.search(text):
return
if assignment in self.OVERRIDING_ASSIGNMENTS: