LoginSignup
3
3

More than 5 years have passed since last update.

Swiftのソースコード行数をカウントしてみる

Posted at

ソースコード行数をカウントする

自分たちが開発したプロダクトのSLOC数を求められることあると思います。
JenkinsなどでCIを回した結果からSLOC数を求めてくれるようなものもありますが
今回はお手軽にコマンドを使ってSLOCを求めました。

使うコマンドは以下です

find . -type f -name "*.swift" | xargs grep -v -e '^\s*$' -e '^\s*\/' | wc -l
3
3
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
3
3