Skip to content

Commit 75a90d6

Browse files
authored
Merge pull request #129 from NHSDigital/spellcheck-settings
Spellcheck settings
2 parents 1e3d872 + 541227c commit 75a90d6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- markdownlint-disable-next-line first-line-heading -->
21
# What is the change?
32

43
<!-- Describe the intended changes. -->

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
2+
"files.insertFinalNewline": true,
3+
"files.trimTrailingWhitespace": true,
24
"markdownlint.config": {
35
"MD013": false,
46
"MD024": { "siblings_only": true },
57
"MD033": false
68
},
9+
"cSpell.language": "en-GB",
710
"cSpell.words": [
811
"dateutil",
912
"endcall",
13+
"endfor",
1014
"endset",
1115
"fieldset",
1216
"gunicorn",

scripts/githooks/check-markdown-format.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ function run-markdownlint-natively() {
6868
# shellcheck disable=SC2086
6969
markdownlint \
7070
$files \
71-
--config "$PWD/scripts/config/markdownlint.yaml"
71+
--config "$PWD/scripts/config/markdownlint.yaml" \
72+
--ignore "$PWD/.github/PULL_REQUEST_TEMPLATE.md"
7273
}
7374

7475
# Run markdownlint in a Docker container.
@@ -86,7 +87,8 @@ function run-markdownlint-in-docker() {
8687
--volume "$PWD":/workdir \
8788
"$image" \
8889
$files \
89-
--config /workdir/scripts/config/markdownlint.yaml
90+
--config /workdir/scripts/config/markdownlint.yaml \
91+
--ignore /workdir/.github/PULL_REQUEST_TEMPLATE.md
9092
}
9193

9294
# ==============================================================================

0 commit comments

Comments
 (0)