From ce83249d9718b4aca8cef28aef5ea11b477c2b8b Mon Sep 17 00:00:00 2001 From: Adrian Torres Date: Tue, 13 Oct 2020 14:09:50 +0000 Subject: [PATCH] [IMP] test_lint: check for function-redefined error with pylint With this commit, pylint will now point out when the same function/class/method is defined more than once in the same scope which is a recurring mistake. closes odoo/odoo#60044 Related: odoo/enterprise#14090 Signed-off-by: Adrian Torres (adt) --- odoo/addons/test_lint/tests/test_pylint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/addons/test_lint/tests/test_pylint.py b/odoo/addons/test_lint/tests/test_pylint.py index 13eaedd6432..1fa7f88691e 100644 --- a/odoo/addons/test_lint/tests/test_pylint.py +++ b/odoo/addons/test_lint/tests/test_pylint.py @@ -28,6 +28,7 @@ class TestPyLint(TransactionCase): 'undefined-variable', 'eval-used', 'unreachable', + 'function-redefined', # custom checkers 'sql-injection',