From 7cbebd5b4fd3590d2ce311deca043d322d70812c Mon Sep 17 00:00:00 2001 From: Antonio de Jesus Ochoa Solano Date: Thu, 19 Aug 2021 23:59:39 -0700 Subject: [PATCH] Remove bin/hh-errors from bin/test-corpus --- .vscode/tasks.json | 30 +++--------------------------- bin/{hh-json => hh-parse} | 0 bin/test-corpus | 5 ----- 3 files changed, 3 insertions(+), 32 deletions(-) rename bin/{hh-json => hh-parse} (100%) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 564d1e3..6060fc7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -22,10 +22,10 @@ "problemMatcher": [] }, { - "label": "hh-json", + "label": "hh-parse", "type": "shell", - "command": "F=${file}; bin/hh-json $F>\"${F%.*}.json\"; code -r \"${F%.*}.json\"", - "detail": "bin/hh-json ${file}", + "command": "F=${file}; bin/hh-parse $F>\"${F%.*}.json\"; code -r \"${F%.*}.json\"", + "detail": "bin/hh-parse ${file}", "problemMatcher": [] }, { @@ -101,30 +101,6 @@ ] } }, - { - "type": "npm", - "script": "test-corpus", - "label": "npm: test-corpus", - "detail": "bin/test-corpus", - "problemMatcher": { - "fileLocation": "relative", - "pattern": [ - { - "regexp": "^([^\\s].*)$", - "file": 1 - }, - { - "regexp": "^\\((\\d+),(\\d+)\\)-\\((\\d+),(\\d+)\\) (.*)$", - "loop": true, - "line": 1, - "column": 2, - "endLine": 3, - "endColumn": 4, - "message": 5 - } - ] - } - }, { "type": "npm", "script": "test-examples", diff --git a/bin/hh-json b/bin/hh-parse similarity index 100% rename from bin/hh-json rename to bin/hh-parse diff --git a/bin/test-corpus b/bin/test-corpus index d91d8b9..e40873d 100755 --- a/bin/test-corpus +++ b/bin/test-corpus @@ -9,8 +9,3 @@ bin/generate-corpus printf "\033[1mRunning Tree-sitter corpus tests...\033[0m\n" npx tree-sitter test - -printf "\n" - -printf "\033[1mGetting Hacklang corpus errors...\033[0m\n" -bin/hh-errors "$($fd '\.(hack|php)$' test/cases)"