LoginSignup
0
0

cloc をdockerで。docker(142)

Last updated at Posted at 2021-08-30
bash
$ docker run -it utunbu /bin/bash

dockerが起動したら

bash
# apt update; apt -y upgrade
# apt install -y cloc

コード行数計測ツール「cloc」を使ってgitリポジトリのコード行数を解析する
https://qiita.com/bremen/items/1f5490f41d5c2c59f098

Gitリポジトリのコード量を知る
https://qiita.com/black315/items/e5958bf8467e9a2e211a

cloc-git: リモートの git リポジトリのコード行数を数える
https://qiita.com/UedaTakeyuki/items/c025b334fe18a391c421

clocでgit管理下にあるファイルだけを対象とする
https://qiita.com/tunepolo/items/80bb568924fddca88d30

# cloc .
# cloc .
   11160 text files.
    3557 unique files.                                          
   14976 files ignored.

1026 errors:
Unable to read:  ./sys/bus/acpi/drivers/Atlas ACPI/bind
...
Unable to read:  ./sys/module/xz_dec/uevent

github.com/AlDanial/cloc v 1.82  T=12.45 s (139.9 files/s, 95034.3 lines/s)
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
Perl                           1510          97712         146062         455247
C/C++ Header                     83          11212          20117         438097
Bourne Shell                    129           1184           1739           7347
Python                            6            506            317           2110
Bourne Again Shell               11            194            235           1142
YAML                              1              0              0             92
ASP.NET                           2              0              0             57
--------------------------------------------------------------------------------
SUM:                           1742         110808         168470         904092
--------------------------------------------------------------------------------

docker hubに

bash
$ docker push kaizenjapan/cloc

なぜか、エラーで数日Pushできなかった。理由は不明。
macOSは再起動した。

docker loginで失敗すること多数。

参考資料

iOSアプリのコード数を数えたい!!!
https://qiita.com/st43/items/c5ccae02f9d2e16ab28e

Source lines of code(SLOC)を数える
https://qiita.com/tobira-code/items/ff030b32d7ec9d42febf

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0