diff --git a/.vscode/launch.json b/.vscode/launch.json index 7e128dc6..a02e962c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,6 +9,7 @@ "request": "launch", "name": "Test Linter", "program": ".vscode/testlinter.sh", + "cwd": "${workspaceFolder}", "internalConsoleOptions": "openOnSessionStart", "presentation": { "group": "aLinter" diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index 1bc56ad8..40502987 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -1,5 +1,11 @@ #!/bin/bash #At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder #You can also use ln -s /path /tmp/lint as an alternative +#If you do neither, this will default to running against the test automation files +tmppath=/tmp/lint +if [ ! -L tmppath ]; then + ln -s $PWD/.automation/test $tmppath +fi + export RUN_LOCAL=true -/workspaces/super-linter/lib/linter.sh \ No newline at end of file +source $PWD/lib/linter.sh \ No newline at end of file