Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2023-01-18 02:06:22 +0300
committerSarah German <sgerman@gitlab.com>2023-01-18 02:06:22 +0300
commit3ef0ee3e63a48841f6a5af1c91dbee2b9dc97fe7 (patch)
treec17a3ec102211e42689b23e5520ff84cf113ad30 /Makefile
parent40a7f01d7a36245cb4d527ff0c932835222ae5cb (diff)
Update markdownlint-cli2 dependency and use it for things
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 28 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a5f4597d..c4f987b8 100644
--- a/Makefile
+++ b/Makefile
@@ -163,7 +163,34 @@ yamllint-tests:
markdownlint-tests:
@printf "\n$(INFO)INFO: Running markdownlint tests...$(END)\n"
- @yarn markdownlint doc/**/*.md
+ @yarn markdownlint-cli2 doc/**/*.md
+
+markdownlint-whitespace-tests-gitlab:
+ @printf "\n$(INFO)INFO: Running markdownlint whitespace tests on GitLab project...$(END)\n"
+ @cd ../gitlab/doc && markdownlint-cli2-config "../../gitlab-docs/tasks/.markdownlint.yml" "**/*.md"
+
+markdownlint-whitespace-tests-gitlab-runner:
+ @printf "\n$(INFO)INFO: Running markdownlint whitespace tests on GitLab Runner project...$(END)\n"
+ @cd ../gitlab-runner/docs && markdownlint-cli2-config "../../gitlab-docs/tasks/.markdownlint.yml" "**/*.md"
+
+markdownlint-whitespace-tests-omnibus-gitlab:
+ @printf "\n$(INFO)INFO: Running markdownlint whitespace tests on Omnibus GitLab project...$(END)\n"
+ @cd ../omnibus-gitlab/doc && markdownlint-cli2-config "../../gitlab-docs/tasks/.markdownlint.yml" "**/*.md"
+
+markdownlint-whitespace-tests-charts-gitlab:
+ @printf "\n$(INFO)INFO: Running markdownlint whitespace tests on GitLab Chart project...$(END)\n"
+ @cd ../charts-gitlab/doc && markdownlint-cli2-config "../../gitlab-docs/tasks/.markdownlint.yml" "**/*.md"
+
+markdownlint-whitespace-tests-gitlab-operator:
+ @printf "\n$(INFO)INFO: Running markdownlint whitespace tests on GitLab Operator project...$(END)\n"
+ @cd ../gitlab-operator/doc && markdownlint-cli2-config "../../gitlab-docs/tasks/.markdownlint.yml" "**/*.md"
+
+markdownlint-whitespace-tests: install-nodejs-dependencies
+ @$(MAKE) markdownlint-whitespace-tests-gitlab || true
+ @$(MAKE) markdownlint-whitespace-tests-gitlab-runner || true
+ @$(MAKE) markdownlint-whitespace-tests-omnibus-gitlab || true
+ @$(MAKE) markdownlint-whitespace-tests-charts-gitlab || true
+ @$(MAKE) markdownlint-whitespace-tests-gitlab-operator || true
shellcheck-tests:
@printf "\n$(INFO)INFO: Running shellcheck tests...$(END)\n"