debian-mirror-gitlab/doc/.vale/gitlab/AlertBoxStyle.yml

22 lines
845 B
YAML
Raw Normal View History

2020-07-28 23:09:34 +05:30
---
# Error: gitlab.AlertBoxStyle
#
2021-02-22 17:27:13 +05:30
# Makes sure alert boxes are used with block quotes.
2020-07-28 23:09:34 +05:30
#
2021-02-22 17:27:13 +05:30
# Checks for 3 formatting issues:
# - Alert boxes inside a block quote (">")
2020-11-24 15:15:51 +05:30
# - Alert boxes with the note text on the same line
2021-02-22 17:27:13 +05:30
# - Alert boxes using words other than "NOTE" or "WARNING"
2020-11-24 15:15:51 +05:30
#
2020-07-28 23:09:34 +05:30
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
extends: existence
2020-10-24 23:57:45 +05:30
message: 'Alert box "%s" must use the formatting in the style guide.'
2020-07-28 23:09:34 +05:30
link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#alert-boxes
level: error
2021-02-22 17:27:13 +05:30
nonword: true
2020-07-28 23:09:34 +05:30
scope: raw
raw:
2021-02-22 17:27:13 +05:30
- '(\n *\> *(?:NOTE|WARNING)|'
- '\n(NOTE):[^\n]|' # Adding "WARNING" here causes a false positive
- '\n *(?:> )?\**(Note|note|TIP|Tip|tip|CAUTION|Caution|caution|DANGER|Danger|danger|warning):.*)' ## Adding "Warning" here causes a false positive