コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
11648 ビュー

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
19769
0
7月 21
2613
2
10月 24
1292
0
4月 23
2963
0
4月 19
3323