From 28a303a67935dc5566cc0d1fe2be157736691968 Mon Sep 17 00:00:00 2001 From: Xavier ALT <xal@odoo.com> Date: Wed, 8 Sep 2021 21:06:04 +0000 Subject: [PATCH] [FIX] cloc: also exclude module's "upgrades" folder by default Since commit bbb1a8f151b, module's upgrade script can also be added into special 'upgrades' folder as an alternative to the old 'migrations' folder. As those upgrade scripts are not maintained from version to version, we should not count them as maintenance. OPW-2536046 closes odoo/odoo#76184 Signed-off-by: Xavier Alt (xal) <xal@odoo.com> --- odoo/tools/cloc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/tools/cloc.py b/odoo/tools/cloc.py index 0b6acee47db6..d75685bf0bfa 100644 --- a/odoo/tools/cloc.py +++ b/odoo/tools/cloc.py @@ -17,6 +17,7 @@ DEFAULT_EXCLUDE = [ "static/lib/**/*", "static/tests/**/*", "migrations/**/*", + "upgrades/**/*", ] STANDARD_MODULES = ['web', 'web_enterprise', 'website_animate', 'base'] -- GitLab