From 1b59fe9bcbd679b53b0e9021dbb6b574a8aa663c Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Sun, 21 Jun 2026 13:51:19 -0300 Subject: [PATCH 1/2] Remove unused files --- .ocamlformat-ignore | 2 -- .python-version | 1 - tests/analysis_tests/tests/test | 30 ------------------------------ 3 files changed, 33 deletions(-) delete mode 100644 .python-version delete mode 100755 tests/analysis_tests/tests/test diff --git a/.ocamlformat-ignore b/.ocamlformat-ignore index f58b14a5225..a5590ee7abc 100644 --- a/.ocamlformat-ignore +++ b/.ocamlformat-ignore @@ -1,4 +1,2 @@ -compiler/js_parser/** **/*.cppo.ml **/*.cppo.mli -compiler/syntax/compiler-libs-406/* diff --git a/.python-version b/.python-version deleted file mode 100644 index 2c0733315e4..00000000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.11 diff --git a/tests/analysis_tests/tests/test b/tests/analysis_tests/tests/test deleted file mode 100755 index 993782b8678..00000000000 --- a/tests/analysis_tests/tests/test +++ /dev/null @@ -1,30 +0,0 @@ -for file in src/*.{res,resi}; do - output="$(dirname $file)/expected/$(basename $file).txt" - ../../../_build/install/default/bin/rescript-editor-analysis test $file &> $output - # CI. We use LF, and the CI OCaml fork prints CRLF. Convert. - if [ "$RUNNER_OS" == "Windows" ]; then - perl -pi -e 's/\r\n/\n/g' -- $output - fi -done - -for file in not_compiled/*.{res,resi}; do - output="$(dirname $file)/expected/$(basename $file).txt" - ../../../_build/install/default/bin/rescript-editor-analysis test $file &> $output - # CI. We use LF, and the CI OCaml fork prints CRLF. Convert. - if [ "$RUNNER_OS" == "Windows" ]; then - perl -pi -e 's/\r\n/\n/g' -- $output - fi -done - -warningYellow='\033[0;33m' -successGreen='\033[0;32m' -reset='\033[0m' - -diff=$(git ls-files --modified src/expected not_compiled/expected) -if [[ $diff = "" ]]; then - printf "${successGreen}✅ No analysis_tests snapshot changes detected.${reset}\n" -else - printf "${warningYellow}⚠️ The analysis_tests snapshot doesn't match. Double check that the output is correct, run 'make test-analysis' and stage the diff.\n${diff}\n${reset}" - git --no-pager diff src/expected not_compiled/expected - exit 1 -fi From d5259df621ad6b261d5e9ee1a225c1e4cb2f60cc Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Sun, 21 Jun 2026 13:53:12 -0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7782095395..2335ba4dbfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,7 @@ - Refactor analysis CLI helpers to use source input. https://github.com/rescript-lang/rescript/pull/8466 - Include syntax, gentype, analysis, tools, and reanalyze tests in coverage reports. https://github.com/rescript-lang/rescript/pull/8467 - Remove the unreachable `Longident.Lapply` constructor (OCaml's applicative-functor path syntax `F(X).t`, which ReScript's grammar cannot produce). https://github.com/rescript-lang/rescript/pull/8469 +- Remove unused files. https://github.com/rescript-lang/rescript/pull/8481 # 13.0.0-alpha.4