私はBUC-IDごとに行のコードを計算する必要があるユーザーケースがあります。 私は今、私は複数のファイルでBUC-IDを持っているコード行を計算する際に特定のファイルをスキップする方法は?
git log --shortstat --grep=BUC3565-EPIC16 |grep -E "fil(e|es) changed" | awk -v BUC=$i '{ inserted+=$4; deleted+=$6; delta+=$4-$6i } END {printf "%s, %s, %s, %s \n",BUC, inserted, deleted, delta }'
を使用して同じことを達成しています。いくつかのファイルやフォルダをスキップして、そのBUC-IDのコードオフラインを計算できる方法はありますか?
Basically, I need to exclude some files/folders while calculating Lines of Code. I am not able to do so because each commit has multiple files. Some should be included and some excluded...Any idea how to achieve that?
CLOCはファイルを除外する機能を備えていますか?