-
- Downloads
[MOV] test_pylint, test_lint: add es-check linter
Because Odoo still supports Android Kitkat and Internet Explorer, ES5 is the highest ECMAScript allowed version. This commit adds a new test that parses each javascript file found in addons. The test fails if unsupported js code is found. As ES6 is allowed during tests, the files under a path that contains 'static/test' are just skipped. This test uses the es-check tool (https://www.npmjs.com/package/es-check ). If the es-check tool cannot be found, the test is simply skipped. Also the test_pylint module is renamed to a more generic name test_lint, that way, every linter test can find a shelter here. closes odoo/odoo#33724 Signed-off-by:Christophe Monniez (moc) <moc@odoo.com>
Showing
- odoo/addons/test_lint/__init__.py 13 additions, 0 deletionsodoo/addons/test_lint/__init__.py
- odoo/addons/test_lint/__manifest__.py 3 additions, 2 deletionsodoo/addons/test_lint/__manifest__.py
- odoo/addons/test_lint/tests/__init__.py 2 additions, 0 deletionsodoo/addons/test_lint/tests/__init__.py
- odoo/addons/test_lint/tests/test_ecmascript.py 48 additions, 0 deletionsodoo/addons/test_lint/tests/test_ecmascript.py
- odoo/addons/test_lint/tests/test_pylint.py 0 additions, 0 deletionsodoo/addons/test_lint/tests/test_pylint.py
- odoo/addons/test_pylint/__init__.py 0 additions, 0 deletionsodoo/addons/test_pylint/__init__.py
Loading
Please register or sign in to comment