From 375ecfe40bee95e684ead5b06628c921e0ea1119 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 5 Aug 2023 15:47:59 +0200 Subject: [PATCH] fix(tool): Run cloc only on git known files --- tool/cloc.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tool/cloc.sh b/tool/cloc.sh index ab57384b..d9ea9bb0 100755 --- a/tool/cloc.sh +++ b/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=- .