From 79286a45041274ee4f668e54e7748343ff0505f2 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 14:10:13 +0000 Subject: [PATCH 01/21] Fix: Add .gitattributes file to make development Windows-Friendly --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..5dc46e6b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto eol=lf +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf \ No newline at end of file From 66983a8706d0a7e389b61ff45be51f89da383d78 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 14:10:28 +0000 Subject: [PATCH 02/21] Fix: Add devcontainer.json to allow vscode users to develop in container directly from repository --- .devcontainer/devcontainer.json | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..b470e0aa --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,34 @@ +// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.123.0/containers/docker-existing-dockerfile +{ + "name": "SUPER-LINTER", + + // Sets the run context to one level up instead of the .devcontainer folder. + "context": "..", + + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. + "dockerFile": "..\\Dockerfile", + + // Set *default* container specific settings.json values on container create. + "settings": { + "terminal.integrated.shell.linux": null + }, + + // Add the IDs of extensions you want installed when the container is created. + "extensions": [] + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Uncomment the next line to run commands after the container is created - for example installing curl. + // "postCreateCommand": "apt-get update && apt-get install -y curl", + + // Uncomment when using a ptrace-based debugger like C++, Go, and Rust + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], + + // Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. + // "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], + + // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. + // "remoteUser": "vscode" +} From 7d95b48a05b60d7807d40090fae30a18e848f3de Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 15:09:52 +0000 Subject: [PATCH 03/21] Fix: Add proper shell and bash debugging extension --- .devcontainer/devcontainer.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b470e0aa..1d430c89 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,11 +11,13 @@ // Set *default* container specific settings.json values on container create. "settings": { - "terminal.integrated.shell.linux": null + "terminal.integrated.shell.linux": "/bin/ash" }, // Add the IDs of extensions you want installed when the container is created. - "extensions": [] + "extensions": [ + "rogalmic.bash-debug" + ] // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], From a2cf5c643727fcefa88513fb90ffd8c2235e76f6 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 16:13:32 +0000 Subject: [PATCH 04/21] Feat: Add Launch.json for bash debugging --- .vscode/launch.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..744b2145 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "bashdb", + "request": "launch", + "name": "Bash-Debug (simplest configuration)", + "program": "${file}" + } + ] +} \ No newline at end of file From 9ce962cf6990997008a825274a55964dfa3f04f8 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 16:53:52 +0000 Subject: [PATCH 05/21] Feat: Automatically link automation test cases to /tmp/lint by default --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1d430c89..48a0b66a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -17,13 +17,13 @@ // Add the IDs of extensions you want installed when the container is created. "extensions": [ "rogalmic.bash-debug" - ] + ], // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Uncomment the next line to run commands after the container is created - for example installing curl. - // "postCreateCommand": "apt-get update && apt-get install -y curl", + "postCreateCommand": "ln -s /workspaces/super-linter/.automation/test /tmp/lint", // Uncomment when using a ptrace-based debugger like C++, Go, and Rust // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], From 8b47945eea851f9f1e55df5e8bfb65268923f098 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 16:54:23 +0000 Subject: [PATCH 06/21] Updated Launch.json --- .vscode/launch.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 744b2145..7e128dc6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,8 +7,12 @@ { "type": "bashdb", "request": "launch", - "name": "Bash-Debug (simplest configuration)", - "program": "${file}" + "name": "Test Linter", + "program": ".vscode/testlinter.sh", + "internalConsoleOptions": "openOnSessionStart", + "presentation": { + "group": "aLinter" + } } ] } \ No newline at end of file From 7f23223ed5178db913b53a8c60e90069f933816a Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 16:54:36 +0000 Subject: [PATCH 07/21] Fix: Add testlinter file to force run_local --- .vscode/testlinter.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .vscode/testlinter.sh diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh new file mode 100644 index 00000000..464c420e --- /dev/null +++ b/.vscode/testlinter.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export RUN_LOCAL=true +/workspaces/super-linter/lib/linter.sh \ No newline at end of file From 90a1f525b04a6ffde616805c902e8f6a37217e38 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 17:31:53 +0000 Subject: [PATCH 08/21] Feat: Make GITHUB_WORKSPACE overridable in RUN_LOCAL Mode --- lib/linter.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 473f53cd..6a81206f 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -579,6 +579,14 @@ GetGitHubVars() ########################################## echo "NOTE: ENV VAR [RUN_LOCAL] has been set to:[true]" echo "bypassing GitHub Actions variables..." + + ############################ + # Set the GITHUB_WORKSPACE # + ############################ + if [ -z "$GITHUB_WORKSPACE" ]; then + GITHUB_WORKSPACE="$DEFAULT_WORKSPACE" + fi + echo "Linting all files in mapped directory:[$DEFAULT_WORKSPACE]" # No need to touch or set the GITHUB_SHA @@ -586,10 +594,6 @@ GetGitHubVars() # No need to touch or set the GITHUB_ORG # No need to touch or set the GITHUB_REPO - ############################ - # Set the GITHUB_WORKSPACE # - ############################ - GITHUB_WORKSPACE="$DEFAULT_WORKSPACE" ################################# # Set the VALIDATE_ALL_CODEBASE # From 9bce2fecb9052370d918bed33b16ea40583a8803 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 17:32:09 +0000 Subject: [PATCH 09/21] Minor refinements --- .devcontainer/devcontainer.json | 2 +- .vscode/testlinter.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 48a0b66a..b3259b1f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -23,7 +23,7 @@ // "forwardPorts": [], // Uncomment the next line to run commands after the container is created - for example installing curl. - "postCreateCommand": "ln -s /workspaces/super-linter/.automation/test /tmp/lint", + //"postCreateCommand": "ln -s /workspaces/super-linter/.automation/test /tmp/lint", // Uncomment when using a ptrace-based debugger like C++, Go, and Rust // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index 464c420e..1bc56ad8 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -1,3 +1,5 @@ #!/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 export RUN_LOCAL=true /workspaces/super-linter/lib/linter.sh \ No newline at end of file From fdc003eb9101a6c1e3dd5d51169b0cbfacde567f Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 17:48:17 +0000 Subject: [PATCH 10/21] Feat: Add Github Pull Requests Extension --- .devcontainer/devcontainer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b3259b1f..03dde16a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -16,6 +16,7 @@ // Add the IDs of extensions you want installed when the container is created. "extensions": [ + "github.vscode-pull-request-github", "rogalmic.bash-debug" ], From 5064b0c67aa4fb981fe4693d573ce8258ad75af4 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 17:48:39 +0000 Subject: [PATCH 11/21] Fix: Default Linter to automation tests --- .vscode/launch.json | 1 + .vscode/testlinter.sh | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 From 211a22c329eaea54e13e9757e40c9d6bf1813262 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 12:03:30 -0700 Subject: [PATCH 12/21] Fix: Change ash to bash for default Terminal Co-authored-by: Antoine Leblanc --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 03dde16a..72190b10 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,7 @@ // Set *default* container specific settings.json values on container create. "settings": { - "terminal.integrated.shell.linux": "/bin/ash" + "terminal.integrated.shell.linux": "/bin/bash" }, // Add the IDs of extensions you want installed when the container is created. From 524ebed9cde62baf1a2cfbcf3fba39c708878964 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Fri, 19 Jun 2020 21:14:17 +0000 Subject: [PATCH 13/21] Fix tmppath detection --- .vscode/testlinter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index 40502987..f7e7eb79 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -3,7 +3,7 @@ #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 +if [ ! -L $tmppath ]; then ln -s $PWD/.automation/test $tmppath fi From 6705cf967602f96f859fce0cfc75d8de77f98c66 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Wed, 24 Jun 2020 14:19:24 -0700 Subject: [PATCH 14/21] Docs: Add note about vscode --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index f1dfb044..a768514a 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,13 @@ Below are a list of the known limitations for the **GitHub Super-Linter**: ## How to contribute If you would like to help contribute to this **GitHub** Action, please see [CONTRIBUTING](https://github.com/github/super-linter/blob/master/.github/CONTRIBUTING.md) +### Visual Studio Code +You can checkout this repository using [Container Remote Development](https://code.visualstudio.com/docs/remote/containers), and debug the linter using the `Test Linter` task. +![Example](https://user-images.githubusercontent.com/15258962/85165778-2d2ce700-b21b-11ea-803e-3f6709d8e609.gif) + +We will also support [Github Codespaces](https://github.com/features/codespaces/) once it becomes available + + -------------------------------------------------------------------------------- ### License From 172e29dad3e4d7768590e191201522ece5b384f9 Mon Sep 17 00:00:00 2001 From: Gabo Date: Thu, 25 Jun 2020 10:03:39 -0500 Subject: [PATCH 15/21] Fix bash lint errors --- .vscode/testlinter.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index f7e7eb79..c6a54f00 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -4,8 +4,9 @@ #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 + ln -s "$PWD"/.automation/test $tmppath fi export RUN_LOCAL=true -source $PWD/lib/linter.sh \ No newline at end of file +# shellcheck source=lib/linter.sh +source "$PWD"/lib/linter.sh \ No newline at end of file From b8171a9bfbd7702465c8fe38657aec632d2f0c12 Mon Sep 17 00:00:00 2001 From: Gabo Date: Thu, 25 Jun 2020 10:04:02 -0500 Subject: [PATCH 16/21] Fix markdown lint errors --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 38a83bf8..fe4627be 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Super-Linter -This repository is for the **GitHub Action** to run a **Super-Linter**. +This repository is for the **GitHub Action** to run a **Super-Linter**. It is a simple combination of various linters, written in `bash`, to help validate your source code. The end goal of this tool: @@ -112,9 +112,9 @@ jobs: ## Environment variables The super-linter allows you to pass the following `ENV` variables to be able to trigger different functionality. -*Note:* All the `VALIDATE_[LANGUAGE]` variables behave in a specific way. -If none of them are passed, then they all default to true. -However if any one of the variables are set, we default to leaving any unset variable to false. +*Note:* All the `VALIDATE_[LANGUAGE]` variables behave in a specific way. +If none of them are passed, then they all default to true. +However if any one of the variables are set, we default to leaving any unset variable to false. This means that if you run the linter "out of the box", all languages will be checked. But if you wish to select specific linters, we give you full control to choose which linters are run, and won't run anything unexpected. @@ -186,12 +186,11 @@ Below are a list of the known limitations for the **GitHub Super-Linter**: If you would like to help contribute to this **GitHub** Action, please see [CONTRIBUTING](https://github.com/github/super-linter/blob/master/.github/CONTRIBUTING.md) ### Visual Studio Code -You can checkout this repository using [Container Remote Development](https://code.visualstudio.com/docs/remote/containers), and debug the linter using the `Test Linter` task. +You can checkout this repository using [Container Remote Development](https://code.visualstudio.com/docs/remote/containers), and debug the linter using the `Test Linter` task. ![Example](https://user-images.githubusercontent.com/15258962/85165778-2d2ce700-b21b-11ea-803e-3f6709d8e609.gif) We will also support [Github Codespaces](https://github.com/features/codespaces/) once it becomes available - -------------------------------------------------------------------------------- ### License From a51265c9f0925b7ee09a7d4c8baaba0836b611fd Mon Sep 17 00:00:00 2001 From: Gabo Date: Thu, 25 Jun 2020 10:25:56 -0500 Subject: [PATCH 17/21] Fix slashes --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 72190b10..e8990ac0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,10 +7,10 @@ "context": "..", // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. - "dockerFile": "..\\Dockerfile", + "dockerFile": "..//Dockerfile", // Set *default* container specific settings.json values on container create. - "settings": { + "settings": { "terminal.integrated.shell.linux": "/bin/bash" }, From 26f4d56449e0991a7c70201cadcb8daa03565255 Mon Sep 17 00:00:00 2001 From: Gabo Date: Fri, 26 Jun 2020 13:55:11 -0500 Subject: [PATCH 18/21] Move json comments to readme --- .devcontainer/README.md | 10 ++++++++++ .devcontainer/devcontainer.json | 27 +-------------------------- .vscode/launch.json | 3 --- 3 files changed, 11 insertions(+), 29 deletions(-) create mode 100644 .devcontainer/README.md diff --git a/.devcontainer/README.md b/.devcontainer/README.md new file mode 100644 index 00000000..75057d9f --- /dev/null +++ b/.devcontainer/README.md @@ -0,0 +1,10 @@ +# Devcontainer +This file specifies to vscode how to run the container + +For format details, see [documentation](https://aka.ms/vscode-remote/devcontainer.json) or this file's [README](https://github.com/microsoft/vscode-dev-containers/tree/v0.123.0/containers/docker-existing-dockerfile) + + +context: Sets the run context to one level up instead of the .devcontainer folder. +dockerFile: Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. +settings: Set *default* container specific settings.json values on container create. +extensions: Add the IDs of extensions you want installed when the container is created. \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e8990ac0..ac0ac8e1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,37 +1,12 @@ -// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.123.0/containers/docker-existing-dockerfile { "name": "SUPER-LINTER", - - // Sets the run context to one level up instead of the .devcontainer folder. "context": "..", - - // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. "dockerFile": "..//Dockerfile", - - // Set *default* container specific settings.json values on container create. "settings": { "terminal.integrated.shell.linux": "/bin/bash" }, - - // Add the IDs of extensions you want installed when the container is created. "extensions": [ "github.vscode-pull-request-github", "rogalmic.bash-debug" - ], - - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - - // Uncomment the next line to run commands after the container is created - for example installing curl. - //"postCreateCommand": "ln -s /workspaces/super-linter/.automation/test /tmp/lint", - - // Uncomment when using a ptrace-based debugger like C++, Go, and Rust - // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], - - // Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. - // "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], - - // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. - // "remoteUser": "vscode" + ] } diff --git a/.vscode/launch.json b/.vscode/launch.json index a02e962c..77e1ced2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { From 3975731d07ad4e849c08aa2c8bbf8d1fbb2f56cf Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 29 Jun 2020 09:08:04 -0500 Subject: [PATCH 19/21] cleanup --- .vscode/testlinter.sh | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index c6a54f00..e27c6ac2 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -1,12 +1,26 @@ -#!/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 +#!/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 +# If you do neither, this will default to running against the test automation files + +########### +# 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 +######################### +# Export to run locally # +######################### export RUN_LOCAL=true -# shellcheck source=lib/linter.sh -source "$PWD"/lib/linter.sh \ No newline at end of file + +# # shellcheck disable=SC1091 +source "$PWD"/lib/linter.sh From a578c20faa765916e7a72f2325efb456df398d07 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 29 Jun 2020 09:13:04 -0500 Subject: [PATCH 20/21] fixing linkage --- .vscode/testlinter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index e27c6ac2..dc45a319 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -22,5 +22,5 @@ fi ######################### export RUN_LOCAL=true -# # shellcheck disable=SC1091 +# # shellcheck disable=SC1091,SC1090 source "$PWD"/lib/linter.sh From 529df42adb2aa1c10d8dfef320ac7e507ce5a1fe Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 29 Jun 2020 09:16:17 -0500 Subject: [PATCH 21/21] fixed double pound --- .vscode/testlinter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/testlinter.sh b/.vscode/testlinter.sh index dc45a319..8d778d16 100644 --- a/.vscode/testlinter.sh +++ b/.vscode/testlinter.sh @@ -22,5 +22,5 @@ fi ######################### export RUN_LOCAL=true -# # shellcheck disable=SC1091,SC1090 +# shellcheck disable=SC1091,SC1090 source "$PWD"/lib/linter.sh