Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
11600 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sty 25
19657
0
lip 21
2585
2
paź 24
1284
0
kwi 23
2938
0
kwi 19
3313