Browse Source

Merge pull request #530 from provokateurin/fix/cloc

fix(tool): Run cloc only on git known files
pull/534/head
Kate 1 year ago committed by GitHub
parent
commit
443851b502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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