Commit 415e0840 authored by Evan Read's avatar Evan Read

Merge branch 'vale-update-config' into 'master'

Make vale use raw scope

See merge request gitlab-org/gitlab!27044
parents 24250d31 bfde9707
--- ---
# Checks for the presence of absolute hyperlinks that should be relative. # Checks for the presence of absolute hyperlinks that should be relative.
# #
# Requires --ignore-syntax CLI flag to find matches.
#
# For a list of all options, see https://errata-ai.github.io/vale/styles/ # For a list of all options, see https://errata-ai.github.io/vale/styles/
extends: existence extends: existence
message: URL '%s' must be relative. message: Link %s must be relative.
link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#links-to-internal-documentation link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#links-to-internal-documentation
level: error level: error
scope: raw
raw: raw:
- '\[.+\]\(https?:\/\/docs\.gitlab\.com\/ee.*\)' - '\[.+\]\(https?:\/\/docs\.gitlab\.com\/ee.*\)'
...@@ -80,7 +80,7 @@ echo '=> Linting markdown style...' ...@@ -80,7 +80,7 @@ echo '=> Linting markdown style...'
run_locally_or_in_docker 'markdownlint' "--config .markdownlint.json ${MD_DOC_PATH}" run_locally_or_in_docker 'markdownlint' "--config .markdownlint.json ${MD_DOC_PATH}"
echo '=> Linting prose...' echo '=> Linting prose...'
run_locally_or_in_docker 'vale' "--minAlertLevel error --ignore-syntax ${MD_DOC_PATH}" run_locally_or_in_docker 'vale' "--minAlertLevel error ${MD_DOC_PATH}"
echo "✔ Linting passed" echo "✔ Linting passed"
exit 0 exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment