Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
10730 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
led 25
18240
0
čvc 21
2294
2
říj 24
889
0
dub 23
2358
0
dub 19
2957