2020-07-28 23:09:34 +05:30
|
|
|
---
|
|
|
|
# Error: gitlab.AlertBoxStyle
|
|
|
|
#
|
|
|
|
# Makes sure alert boxes follow standard formatting.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
scope: raw
|
|
|
|
raw:
|
|
|
|
- '((NOTE|TIP|CAUTION|DANGER): \*\*[^:]*\*\*)|'
|
2020-10-24 23:57:45 +05:30
|
|
|
- '((NOTE: \*\*(NOTE|note):\*\*)|(TIP: \*\*(TIP|tip):\*\*)|(CAUTION: \*\*(CAUTION|caution):\*\*)|(DANGER: \*\*(DANGER|danger):\*\*))|'
|
|
|
|
- '((NOTE|TIP|CAUTION|DANGER): \*\*.*\*\*.+)|'
|
|
|
|
- '((\n[> ]*(\*){1,2}(NOTE|Note|note|TIP|Tip|tip|CAUTION|Caution|caution|DANGER|Danger|danger):(\*){1,2}))'
|