Commit 424f73d2 authored by Cynthia "Arty" Ng's avatar Cynthia "Arty" Ng
Browse files

Add HeadingLink rule and fix errors

parent 91f5efff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ swap:
  behaviour: behavior
  busses: buses
  calibre: caliber
  cancelled: canceled
  cancelling: canceling
  categorise: categorize
  categorised: categorized
  categorises: categorizes
+18 −0
Original line number Diff line number Diff line
---
# Error: handbook.HeadingLink
#
# Do not include a link in a heading.
# Headings already have self-referencing anchor links,
# and they're used for generating the table of contents.
# Adding a link will break the anchor linking behaviour.
#
# For a list of all options, see https://vale.sh/docs/topics/styles/
extends: existence
message: "Do not have links in headings: '%s' "
level: error
ignorecase: true
nonword: true
link: https://handbook.gitlab.com/docs/markdown-guide/#headings
scope: raw
tokens:
  - ^#+ [^\n]*\[[^\]\n]*\]\([^\)\n]+\)
+0 −14
Original line number Diff line number Diff line
---
# Warning: handbook.InclusionAbleism
#
# Suggests alternatives for words that foster ableism.
#
# For a list of all options, see https://vale.sh/docs/topics/styles/
extends: substitution
message: "Use inclusive language. Consider '%s' instead of '%s'."
link: https://docs.gitlab.com/ee/development/documentation/styleguide/word_list.html
level: warning
ignorecase: true
swap:
  sanity (?:check|test): check for completeness
  dummy: placeholder, sample, fake
+0 −18
Original line number Diff line number Diff line
---
# Warning: handbook.InclusionGender
#
# Suggests alternatives for words that are gender-specific.
#
# For a list of all options, see https://vale.sh/docs/topics/styles/
extends: substitution
message: "Use inclusive language. Consider '%s' instead of '%s'."
link: https://docs.gitlab.com/ee/development/documentation/styleguide/word_list.html
level: warning
ignorecase: true
swap:
  mankind: humanity, people
  manpower: GitLab team members
  he: they
  his: their
  she: they
  hers: their
+10 −3
Original line number Diff line number Diff line
---
# Warning: handbook.InclusionCultural
# Warning: handbook.InclusiveLanguage
#
# Suggests alternatives for words that are culturally inappropriate.
# Suggests alternatives for non-inclusive language.
#
# For a list of all options, see https://vale.sh/docs/topics/styles/
extends: substitution
@@ -11,6 +11,13 @@ level: warning
ignorecase: true
swap:
  blacklist(?:ed|ing|s)?: denylist
  whitelist(?:ed|ing|s)?: allowlist
  dummy: placeholder, sample, fake
  (?:he|she): they
  hers: their
  his: their
  mankind: humanity, people
  manpower: GitLab team members
  master: primary, main
  sanity (?:check|test): check for completeness
  slave: secondary
  whitelist(?:ed|ing|s)?: allowlist
Loading