Skip to content

Commit 8a5ddc9

Browse files
ereadaxilleas
authored andcommitted
Update linting tools in project
1 parent 91451e2 commit 8a5ddc9

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.gitlab/ci/_common.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ variables:
77
RUNNER_IMAGES_VERSION: "0.0.14"
88
RUNNER_IMAGES_WINDOWS_GO_URL: https://gitlab.com/api/v4/projects/gitlab-org%2fci-cd%2frunner-tools%2fbase-images/packages/generic/runner-images/v${RUNNER_IMAGES_VERSION}/golang-windows-amd64.zip
99
CI_IMAGE: "${RUNNER_IMAGES_REGISTRY}/ci:${RUNNER_IMAGES_VERSION}"
10+
DOCS_LINT_IMAGE: registry.gitlab.com/gitlab-org/technical-writing/docs-gitlab-com/lint-markdown:alpine-3.21-vale-3.11.2-markdownlint2-0.17.2-lychee-0.18.1
1011
# Feature flags
1112
FF_SCRIPT_SECTIONS: "true"
1213
FF_USE_FASTZIP: "true"

.gitlab/ci/qa.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,15 @@ mage tests:
9292

9393
# Perform documentation linting and link checking on Markdown files
9494
docs:lint markdown:
95-
image: registry.gitlab.com/gitlab-org/technical-writing/docs-gitlab-com/lint-markdown:alpine-3.20-vale-3.9.3-markdownlint2-0.17.1-lychee-0.15.1
95+
image: $DOCS_LINT_IMAGE
9696
stage: qa
9797
extends:
9898
- .rules:merge_request_pipelines
9999
- .no_cache_and_dependencies
100100
needs: []
101101
script:
102+
# Makefiles in this project expect Go to be available
103+
- apk add --quiet go
102104
# Lint content and Markdown, and check links
103105
- make lint-docs VALE_MIN_ALERT_LEVEL=error
104106

.tool-versions

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ yq 4.44.3
44
mockery 2.43.0
55

66
# For linting documentation
7-
markdownlint-cli2 0.17.1
8-
vale 3.9.3
7+
markdownlint-cli2 0.17.2
8+
lychee 0.18.1
9+
vale 3.11.2

.vale.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Vale configuration file.
22
#
3-
# For more information, see https://errata-ai.gitbook.io/vale/getting-started/configuration.
3+
# For more information, see https://vale.sh/docs/vale-ini.
44

55
StylesPath = docs/.vale
66
MinAlertLevel = suggestion
77

8+
IgnoredScopes = code, text.frontmatter.redirect_to
9+
810
[*.md]
911
BasedOnStyles = gitlab_base, gitlab_docs
1012

0 commit comments

Comments
 (0)