Fix: Default Linter to automation tests

This commit is contained in:
Justin Grote 2020-06-19 17:48:39 +00:00
parent fdc003eb91
commit 5064b0c67a
2 changed files with 8 additions and 1 deletions

1
.vscode/launch.json vendored
View file

@ -9,6 +9,7 @@
"request": "launch",
"name": "Test Linter",
"program": ".vscode/testlinter.sh",
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"presentation": {
"group": "aLinter"

View file

@ -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
source $PWD/lib/linter.sh