Skip to content

Commit 73c06b8

Browse files
committed
Finish up CI improvements
this includes spellcheck for both other files and markdown updated lint script that has more options - including formatting enabled markdown link checker as the first pass on making sure links work update CI to only activate on changed files
1 parent d1f826f commit 73c06b8

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: MegaLinter
13-
run: ./scripts/lint
13+
run: ./scripts/lint -c
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.mega-linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ DISABLE_LINTERS:
1212
- YAML_V8R
1313
- SPELL_LYCHEE
1414
- MARKDOWN_MARKDOWNLINT
15+
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
1516
PRINT_ALL_FILES: false
1617
DOCKERFILE_HADOLINT_ARGUMENTS: "--ignore DL3008 --ignore DL4006 --ignore DL3009 --ignore DL3059"
18+
BASH_SHFMT_ARGUMENTS: "-i 4"
1719
SHOW_ELAPSED_TIME: true
1820
FLAVOR_SUGGESTIONS: true
1921
EMAIL_REPORTER: false

cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"Phila",
1919
"ublabs",
2020
"customised",
21-
"customise"
21+
"customise",
22+
"shfmt"
2223
]
2324
}

scripts/lint

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ APPLY_FIXES=none
66
VALIDATE_ALL_CODEBASE=true
77

88
while [[ $# -gt 0 ]]; do
9-
case "$1" in
10-
-f | --fix)
11-
APPLY_FIXES=true
12-
;;
13-
-c | --changes-only)
14-
VALIDATE_ALL_CODEBASE=false
15-
;;
16-
*)
17-
echo "Unknown option: $1"
18-
echo "$USAGE"
19-
exit 1
20-
;;
21-
esac
22-
shift
9+
case "$1" in
10+
-f | --fix)
11+
APPLY_FIXES=all
12+
;;
13+
-c | --changes-only)
14+
VALIDATE_ALL_CODEBASE=false
15+
;;
16+
*)
17+
echo "Unknown option: $1"
18+
echo "$USAGE"
19+
exit 1
20+
;;
21+
esac
22+
shift
2323
done
2424

2525
docker run --rm \
26-
-e APPLY_FIXES=$APPLY_FIXES \
27-
-e VALIDATE_ALL_CODEBASE=$VALIDATE_ALL_CODEBASE \
28-
-v "$PWD":/tmp/lint oxsecurity/megalinter-python
26+
-e APPLY_FIXES=$APPLY_FIXES \
27+
-e VALIDATE_ALL_CODEBASE=$VALIDATE_ALL_CODEBASE \
28+
-v "$PWD":/tmp/lint oxsecurity/megalinter-python

0 commit comments

Comments
 (0)