Browse Source

fix(tool): Run cloc only on git known files

pull/530/head
jld3103 1 year ago
parent
commit
375ecfe40b
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 6
      tool/cloc.sh

6
tool/cloc.sh

@ -2,8 +2,4 @@
set -euxo pipefail
cd "$(dirname "$0")/.."
cloc \
--fullpath \
--not-match-d="(./external|./specs/templates|./packages/.*/.idea|./packages/.*/build|./packages/.*/coverage|./packages/.*/.dart_tool|./packages/app/linux/flutter/ephemeral|./packages/nextcloud/doc)" \
--exclude-ext="g.dart" --exclude-ext="openapi.dart" \
.
git ls-files | grep -v "^external/" | cloc --fullpath --list-file=- .

Loading…
Cancel
Save