Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bin/hh-errors from bin/test-corpus #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 3 additions & 27 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
},
{
Expand Down Expand Up @@ -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
}
Comment on lines -112 to -124
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only useful when bin/hh-errors is run and there's already a task for that.

]
}
},
{
"type": "npm",
"script": "test-examples",
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions bin/test-corpus
Original file line number Diff line number Diff line change
Expand Up @@ -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)"