mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 10:10:56 -05:00
cleanup
This commit is contained in:
parent
f6ebe07228
commit
3975731d07
1 changed files with 23 additions and 9 deletions
32
.vscode/testlinter.sh
vendored
32
.vscode/testlinter.sh
vendored
|
@ -1,12 +1,26 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env 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
|
# At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder
|
||||||
#If you do neither, this will default to running against the test automation files
|
# You can also use ln -s /path /tmp/lint as an alternative
|
||||||
tmppath=/tmp/lint
|
# If you do neither, this will default to running against the test automation files
|
||||||
if [ ! -L $tmppath ]; then
|
|
||||||
ln -s "$PWD"/.automation/test $tmppath
|
###########
|
||||||
|
# GLOBALS #
|
||||||
|
###########
|
||||||
|
CODE_PATH='/tmp/lint' # Path to code base
|
||||||
|
|
||||||
|
##################
|
||||||
|
# Check the path #
|
||||||
|
##################
|
||||||
|
if [ ! -L $CODE_PATH ]; then
|
||||||
|
# Create symbolic link
|
||||||
|
ln -s "$PWD"/.automation/test $CODE_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#########################
|
||||||
|
# Export to run locally #
|
||||||
|
#########################
|
||||||
export RUN_LOCAL=true
|
export RUN_LOCAL=true
|
||||||
# shellcheck source=lib/linter.sh
|
|
||||||
source "$PWD"/lib/linter.sh
|
# # shellcheck disable=SC1091
|
||||||
|
source "$PWD"/lib/linter.sh
|
||||||
|
|
Loading…
Reference in a new issue