카테고리 없음

프로젝트 코드 라인수 확인하기

프로젝트 코드라인수 확인하는 방법입니다.


출처는 stackoverflow입니다.


http://stackoverflow.com/questions/26881441/can-you-get-the-number-of-lines-of-code-from-a-github-repository



리눅스를 이제 막 공부시작해서 자세한 설명은 생략하고 하는 방법만 알아보겠습니다.


github에 올라가있는 프로젝트를 대상으로 라인수를 확인하고 싶다면, bash shell에서 cloc 이라는 프로그램을 install합니다.


1
sudo apt-get install cloc
cs

하면 cloc이 install 됩니다.

1
git clone --depth 1 https://github.com/pch8388/origin.git
cs

git clone 명령으로 github의 프로젝트를 복사해옵니다.


1
cloc origin
cs

을 하게 되면 각 언어별로 파일수와 코드라인등을 보여줍니다.