Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
11643 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
jan. 25
19755
0
jul. 21
2607
2
okt. 24
1288
0
apr. 23
2959
0
apr. 19
3322