跳至内容
菜单
此问题已终结
1 回复
11581 查看

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?

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
3
1月 25
19643
0
7月 21
2580
2
10月 24
1280
0
4月 23
2931
0
4月 19
3311