#author("2021-11-07T03:02:42+00:00","default:hotate","hotate") #author("2021-11-07T03:02:51+00:00","default:hotate","hotate") #contents &tag(静的解析,メトリクス); * 情報 [#h36dad36] - [[AlDanial/cloc: cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.>https://github.com/AlDanial/cloc]] cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. ** [[2021]]年 [#ie4c2b27] - [[clocコマンドを使ってステップ数(Lines of code)を計測する - Qiita>https://qiita.com/hana_asia/items/d9b77fc647d182c89989]] (2021/11/02) よく使いそうなオプション # git管理下ファイルのみ対象とする (内部でgit ls-files) cloc . --vcs=git ** [[2012]]年 [#b7457b36] - [[WindowsでCLOC使って修正箇所の行数を数える - shmztko's diary>http://shmztko.hatenablog.com/entry/2012/09/28/193156]] (2012/09/28) ファイル毎のdiffじゃなくて全体的な情報(何個のファイルが変更されたの?とか)の場合は、--by-fileオプションを外して実行する。 * 関連 [#od47285d] #related #taglist(tag=メトリクス)