From 1f21192e87de67f4a368c24a7d0939cf673e6d03 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 8 Feb 2025 11:17:07 +0100 Subject: [PATCH] Fix format check exceptions --- scripts/format.sh | 2 +- scripts/format_check.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/format.sh b/scripts/format.sh index e96fa4c436..d5778a8732 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -4,7 +4,7 @@ shopt -s extglob dune build @fmt --auto-promote -files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_*" ! -path "tests/analysis_tests/tests*" ! -path "tests/gentype_tests/typescript-react-example/node_modules") +files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_*" ! -path "tests/analysis_tests/tests*" ! -path "*/node_modules/*") ./cli/rescript format $files npm run format diff --git a/scripts/format_check.sh b/scripts/format_check.sh index 7c7282450b..cd0c347e48 100755 --- a/scripts/format_check.sh +++ b/scripts/format_check.sh @@ -17,7 +17,7 @@ case "$(uname -s)" in fi echo "Checking ReScript code formatting..." - files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_*" ! -path "tests/analysis_tests/tests*" ! -path "tests/gentype_tests/typescript-react-example/node_modules") + files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -path "tests/syntax_*" ! -path "tests/analysis_tests/tests*" ! -path "*/node_modules/*") if ./cli/rescript format -check $files; then printf "${successGreen}✅ ReScript code formatting ok.${reset}\n" else