scriptのステップ数を数える「stepcounter」
普段あまりこういう事はしないんだけど、お仕事の延長で調べたついでにメモ
StepCounter
元はEclipseプラグインで、javaでマルチプラットフォームで動くので単体でも使えるようになった(という合ってるかわからないざっくり認識)
対応言語が幅広い(Java、JSP、ASP、HTML、VBScript、JavaScript、Perl、PHP、ColdFusion、Ruby、Tcl、XML、DTD、XMLSchema、Xi、CSS、Lisp、Velocity、Python、Haskell、Lua、Clojure、Scala)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| // ダウンロード $ wget http://amateras.osdn.jp/mvn/jp/sf/amateras/stepcounter/stepcounter/3.0.3/stepcounter-3.0.3-jar-with-dependencies.jar $ mv stepcounter-3.0.3-jar-with-dependencies.jar stepcounter.jar
// 使ってみる $ java -cp ./stepcounter.jar jp.sf.amateras.stepcounter.Main workspace/github/portfolio/ | grep -v "未対応" ファイル 種類 カテゴリ 実行 空行 コメント 合計 ---------------------------------------------------------------------------------------------------- big-picture.css CSS 1819 327 49 2195 swiper.css CSS 524 0 51 575 timelify.css CSS 169 4 19 192 animate.css CSS 1256 312 11 1579 contact.css CSS 29 0 0 29 util.js js 326 186 18 530 common.js js 24 0 6 30 entry.js js 21 1 0 22 ripple.css CSS 31 5 2 38 contact.css CSS 29 0 0 29 common.js js 22 2 1 25 contact.js js 46 4 0 50 entry.js js 6 0 0 6 manage.py Python 19 2 4 25 __init__.py Python 0 0 0 0 settings.py Python 86 32 22 140 urls.py Python 4 1 17 22 wsgi.py Python 11 7 1 19 admin.py Python 1 1 1 3 __init__.py Python 0 0 0 0 apps.py Python 17 5 0 22 __init__.py Python 1 0 0 1 contact.py Python 42 5 2 49 filter.py Python 7 3 0 10 index.py Python 49 16 3 68 __init__.py Python 2 0 0 2 memo.py Python 8 4 0 12 urls.py Python 8 2 0 10 models.py Python 1 1 1 3 intro.html HTML 11 0 1 12 memo.html HTML 5 2 0 7 product.html HTML 55 5 1 61 index.html HTML 17 11 0 28 contact.html HTML 31 0 1 32 profile.html HTML 50 2 2 54 experience.html HTML 276 1 17 294 base.html HTML 66 5 4 75 tests.py Python 1 1 1 3 __init__.py Python 0 0 0 0 ws.ini INI 20 6 0 26 uwsgi-production.ini INI 21 5 2 28 ws-production.ini INI 20 6 0 26 uwsgi.ini INI 21 5 2 28 package-lock.json JSON 2119 0 0 2119 webpack.config.js js 35 1 1 37 uwsgi_ws.ini INI 31 9 0 40 entrypoint.sh Shell ! -e /home/docker/c 6 4 1 11 uwsgi.ini INI 28 7 0 35 package.json JSON 16 0 0 16 ws.py Python 34 3 4 41 echo.py Python 6 2 1 9 ---------------------------------------------------------------------------------------------------- 合計 7619 1025 291 8935
|