Skip to Content
Menu
This question has been flagged
1 Reply
12011 Views

I am testing a third party App on a staging branch of my Odoo.sh project.


Is there an easy way to count the lines of code so I know the maintenance cost moving forward?

Avatar
Discard
Best Answer

Yes.


1. Click the SHELL tab of your branch:

2. Change into the directory where your custom module is stored:

  • ls lists the contents
  • cd changes directory

You want to change directories until you are in ~/src/user

cd src
cd user


3. Run odoo with the LOC argument:


odoo-bin cloc -P .


This is the output:



For more information on what these numbers count, see https://www.odoo.com/documentation/master/developer/reference/cli.html#cloc

Avatar
Discard
Related Posts Replies Views Activity
3
Sep 25
20437
0
Jul 21
2788
2
Oct 24
1503
0
Apr 23
3163
0
Apr 19
3456