Skip to content

Commit f501b00

Browse files
super linter v7
1 parent b83973d commit f501b00

5 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/linter.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Linter GitHub Actions ##
33
###########################
44
#
5-
# Documentation: https://github.com/github/super-linter/
5+
# Documentation: https://github.com/super-linter/super-linter/
66
#
77
# Exception config files are in the .github/linters directory
88
#
@@ -24,12 +24,11 @@ jobs:
2424
# Only run the full workflow for manual runs or if upgrading the super linter
2525
if: |
2626
github.event_name != 'workflow_dispatch' &&
27-
startsWith(github.event.pull_request.title,'Bump github/super-linter') != true
27+
startsWith(github.event.pull_request.title,'Bump super-linter/super-linter') != true
2828
run: |
2929
echo "VALIDATE_ALL_CODEBASE=false" >> $GITHUB_ENV
3030
- name: Lint Code Base
31-
#uses: docker://github/super-linter:v3.15.3
32-
uses: github/super-linter/slim@v4.10.1
31+
uses: super-linter/super-linter/slim@v7
3332
env:
3433
DEFAULT_BRANCH: main
3534
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Use more complete checks for generated HTML linting
3636
run: cp -f .github/linters/.htmlhintrc_morechecks .github/linters/.htmlhintrc
3737
- name: Lint Generated HTML
38-
uses: github/super-linter/slim@v4.10.1
38+
uses: super-linter/super-linter/slim@v7
3939
env:
4040
DEFAULT_BRANCH: main
4141
FILTER_REGEX_INCLUDE: static/html/.*

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"deploy": "./tools/scripts/deploy.sh",
2626
"timestamps": "node ./tools/generate/generate_timestamps",
2727
"lint": "run-script-os",
28-
"lint:darwin:linux": "docker container run -it --rm -v \"$PWD\":/app -w /app --entrypoint=./tools/scripts/run_linter_locally.sh github/super-linter",
29-
"lint:win32": "docker container run --rm -v \"%cd%\":/app -w /app/ --entrypoint=./tools/scripts/run_linter_locally.sh github/super-linter",
28+
"lint:darwin:linux": "docker container run -it --rm -v \"$PWD\":/app -w /app --entrypoint=./tools/scripts/run_linter_locally.sh super-linter/super-linter",
29+
"lint:win32": "docker container run --rm -v \"%cd%\":/app -w /app/ --entrypoint=./tools/scripts/run_linter_locally.sh super-linter/super-linter",
3030
"pytest": "pytest --cov server --cov-fail-under=100 --cov-report=term-missing -s",
3131
"test": "node ./tools/test"
3232
},

tools/scripts/run_linter_locally.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
set -e
1818

1919
# Annoyingly super-linter includes node_modules and env which take a long time
20-
# https://github.com/github/super-linter/issues/985
20+
# https://github.com/super-linter/super-linter/issues/985
2121
# So let's copy to /tmp folder and lint from there. It has the added advantage
2222
# of us being able to lint specific subsets of files easily.
2323

tools/scripts/set_lighthouse_urls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if [ "${production}" == "1" ]; then
5454
elif [ "${RUN_TYPE}" == "pull_request" ] && [ "${COMMIT_SHA}" != "" ]; then
5555

5656
# If this is part of pull request then get list of files as those changed
57-
# Uses similar logic to GitHub Super Linter (https://github.com/github/super-linter/blob/master/lib/buildFileList.sh)
57+
# Uses similar logic to GitHub Super Linter (https://github.com/super-linter/super-linter/blob/master/lib/buildFileList.sh)
5858
# First checkout main to get list of differences
5959
git pull --quiet
6060
git checkout main

0 commit comments

Comments
 (0)