-
- Downloads
[ADD] cloc: count loc in style file and from imported module
Context
-------
Web design specific require a lot of work and need maintenance.
So far the style files were not taken into account despite the
amount of maintenance they require.
With this commit they are going to be counted,
knowing they still can be excluded in the manifest.
Imported module allow to deploy frontend assets: stylesheet,
javascript, xml template and Qweb view that require
as well some maintenance. They are going to be counted
Implementation
--------------
- Add method to parse css and scss file
- Include .scss and .css file in the count
- Add external_id to attachment that store
frontend asset of imported module
- Find all attachment with .js, .css, .scss, .xml
from imported module
- Find qweb view from imported module
- cound the content of the attachment and the qweb view
closes odoo/odoo#85854
Signed-off-by:
Christophe Simonis <chs@odoo.com>
Showing
- addons/base_import_module/models/ir_module.py 8 additions, 2 deletionsaddons/base_import_module/models/ir_module.py
- addons/base_import_module/tests/test_cloc.py 80 additions, 2 deletionsaddons/base_import_module/tests/test_cloc.py
- addons/base_import_module/tests/test_import_module.py 2 additions, 2 deletionsaddons/base_import_module/tests/test_import_module.py
- odoo/addons/base/tests/test_cloc.py 59 additions, 6 deletionsodoo/addons/base/tests/test_cloc.py
- odoo/tools/cloc.py 80 additions, 15 deletionsodoo/tools/cloc.py
Loading
Please register or sign in to comment