Skip to content
Snippets Groups Projects
Commit 1c522ee7 authored by Antony Lesuisse's avatar Antony Lesuisse Committed by Olivier Dony
Browse files

[ADD] odoo-bin cloc cli subcommand.


Odoo cloc is a tool to count the number of relevant lines written in Python,
Javascript or XML. This can be used as rough metric for pricing maintenance of
customizations.

It has two modes of operation, either by providing a path:

    odoo-bin cloc -p module_path

Or by providing the name of a database:

    odoo-bin cloc --addons-path=dirs -d database

In the latter mode, only the custom code is accounted for.
Both modes can be used simultaneously.

Files that cannot be parsed are shown at the end of the report.
Parsing can fail due to syntax errors or excessive file size.

closes odoo/odoo#52635

X-original-commit: ae858c3ac66267b4726db459032b91a6be1cc1d6
Related: odoo/enterprise#11018
Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
Co-authored-by: default avatarThibault Francois <tfr@odoo.com>
Co-authored-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
parent 061ff011
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment