From b5b4da040f81f8a959098eb6ca747e9c5004a190 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 9 Feb 2023 05:13:43 +0900 Subject: [PATCH] Mark .github/.cspell/rust-dependencies.txt linguist-generated --- .gitattributes | 1 + tools/tidy.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitattributes b/.gitattributes index 6313b56c..ca8ff9cb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ * text=auto eol=lf +.github/.cspell/rust-dependencies.txt linguist-generated diff --git a/tools/tidy.sh b/tools/tidy.sh index a0500f51..df52d593 100755 --- a/tools/tidy.sh +++ b/tools/tidy.sh @@ -175,6 +175,9 @@ EOF echo "${words}" >>.github/.cspell/rust-dependencies.txt fi check_diff .github/.cspell/rust-dependencies.txt + if ! grep -Eq "^\.github/\.cspell/rust-dependencies.txt linguist-generated" .gitattributes; then + echo "warning: you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated" + fi echo "+ npx cspell --no-progress \$(git ls-files)" npx cspell --no-progress $(git ls-files)