Skip to content

Commit 6b73cb8

Browse files
committed
Update PR against main
1 parent c265aa2 commit 6b73cb8

9 files changed

Lines changed: 342 additions & 50 deletions

ValeStyles/Couchbase/Button.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ extends: existence
22
message: "Do not refer to a UI element with the word 'button', as in 'Click the Edit button'. Make sure to use the button macro (btn:[])."
33
level: error
44
link: https://docs.couchbase.com/styleguide/button-macro.html
5+
scope: raw
56

67
tokens:
7-
- '(?i)\bclick the(?: \*?[\w-]+\*?)* button\b'
8+
- '(?i)\bclick the \*?[\w -]+\*? button\b'

ValeStyles/Couchbase/Values.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ extends: existence
22
message: When comparing or describing a value, use 'greater' or 'less'.
33
level: warning
44
link: https://docs.couchbase.com/styleguide/values.html
5+
scope:
6+
- raw # nothing is flagged if this is set to 'text'???
57

68
tokens:
79
- '\b(?:above|below|higher|lower)\b\s+\d+(?:\.\d+)?'
8-
- '\b(?:above|below|higher|lower)\b(?:\s+the|\s+than)?(?:\s+\w+){0,5}?\s+(?:limit|threshold|maximum|minimum|cap|ceiling|floor|boundary|cutoff)\b'
10+
- '\b(?:above|below|higher|lower)\b(?:\s+the|\s+than)?(?:\s+\w+){0,5}?\s+(?:limit|threshold|maximum|minimum|cap|ceiling|floor|boundary|cutoff)\b'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
flag:
2+
- click the cancel button
3+
- click the *cancel* button
4+
- click the Stay Alert button
5+
- click the *Stay Alert* button
6+
compliant:
7+
- click btn:[Cancel]

ValeStyles/test/adoc/Test-Couchbase.CouchbaseServerWebConsole.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
flag:
2+
- The *Add Page* dialog opens.
3+
- Suddenly the Shopkeeper appears.
4+
compliant:
5+
- Open the *Add Page* dialog.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
flag:
2+
- one fish
3+
- two fish
4+
compliant:
5+
- red fish
6+
- blue fish
7+
- 1 fish
8+
- 2 fish
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
flag:
2+
- For more details, see <<xref>>
3+
- Refer to <<xref>>
4+
compliant:
5+
- For more information, see <<xref>>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
flag:
2+
- above 1000
3+
- higher than the blood sugar limit
4+
compliant:
5+
- greater than 1000
6+
- less than the limit

0 commit comments

Comments
 (0)