Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c8021e2a
Commit
c8021e2a
authored
Oct 21, 2020
by
Marcel Amirault
Committed by
Amy Qualls
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make stricter alert box rules
Make use of Vale 2.4.0 feature to strengthen alert box rules
parent
a53ff11f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
5 deletions
+41
-5
doc/.vale/gitlab/AlertBoxCaution.yml
doc/.vale/gitlab/AlertBoxCaution.yml
+13
-0
doc/.vale/gitlab/AlertBoxDanger.yml
doc/.vale/gitlab/AlertBoxDanger.yml
+13
-0
doc/.vale/gitlab/AlertBoxNoteTip.yml
doc/.vale/gitlab/AlertBoxNoteTip.yml
+14
-0
doc/.vale/gitlab/AlertBoxStyle.yml
doc/.vale/gitlab/AlertBoxStyle.yml
+1
-5
No files found.
doc/.vale/gitlab/AlertBoxCaution.yml
0 → 100644
View file @
c8021e2a
---
# Error: gitlab.AlertBoxCaution
#
# Makes sure DANGER: alert boxes follow standard formatting.
#
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
extends
:
substitution
message
:
"
CAUTION:
alert
boxes
must
be
of
the
format
'CAUTION:
**Caution:**'.
'Caution'
can
be
replaced
with
'Warning'
or
'Important'."
level
:
warning
nonword
:
true
scope
:
raw
swap
:
'
CAUTION:
*?\*\*.*\*\*'
:
'
CAUTION:
\*\*(?:Caution|Warning|Important):\*\*'
doc/.vale/gitlab/AlertBoxDanger.yml
0 → 100644
View file @
c8021e2a
---
# Error: gitlab.AlertBoxDanger
#
# Makes sure DANGER: alert boxes follow standard formatting.
#
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
extends
:
substitution
message
:
"
DANGER:
alert
boxes
must
be
of
the
format
'DANGER:
**Warning:**'.
'Warning'
can
be
replaced
with
'Important',
'Deprecated',
or
'Required'."
level
:
warning
nonword
:
true
scope
:
raw
swap
:
'
DANGER:
*?\*\*.*\*\*'
:
'
DANGER:
\*\*(?:Warning|Important|Deprecated|Required):\*\*'
doc/.vale/gitlab/AlertBoxNoteTip.yml
0 → 100644
View file @
c8021e2a
---
# Error: gitlab.AlertBoxNoteTip
#
# Makes sure NOTE: and TIP: alert boxes follow standard formatting.
#
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
extends
:
substitution
message
:
"
NOTE:
and
TIP:
alert
boxes
must
be
of
the
format
'NOTE:
**Note:**'
or
'TIP:
**Tip:**"
level
:
warning
nonword
:
true
scope
:
raw
swap
:
'
NOTE:
*?\*\*.*\*\*'
:
'
NOTE:
\*\*Note:\*\*'
'
TIP:
*?\*\*.*\*\*'
:
'
TIP:
\*\*Tip:\*\*'
doc/.vale/gitlab/AlertBoxStyle.yml
View file @
c8021e2a
...
...
@@ -3,9 +3,7 @@
#
# Makes sure alert boxes follow standard formatting.
#
# Checks for 4 known issues:
# - Alert boxes with no colon, or colon outside the bold text
# - Known incorrect capitalization of the most commonly used alert box text
# Checks for 2 formatting issues:
# - Alert boxes with the note text on the same line
# - Alert boxes using blockquote formatting, like "> **Note:**"
#
...
...
@@ -16,7 +14,5 @@ link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#alert
level
:
error
scope
:
raw
raw
:
-
'
((NOTE|TIP|CAUTION|DANGER):
\*\*[^:]*\*\*)|'
-
'
((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}))'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment