콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
11633 화면

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
19744
0
7월 21
2604
2
10월 24
1288
0
4월 23
2953
0
4월 19
3320