Skip to content

Commit 38834af

Browse files
authored
Merge pull request #899 from aireilly/trailing-backslash
Adding trailing backslash rule
2 parents 7c8305b + 1ae2fe7 commit 38834af

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
; Vale configuration file to test the `TrailingBackslash` rule
2+
StylesPath = ../../../styles
3+
MinAlertLevel = suggestion
4+
[*.adoc]
5+
OpenShiftAsciiDoc.TrailingBackslash = YES
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//vale-fixture
2+
[source,terminal]
3+
----
4+
oc get my lunch\
5+
----
6+
7+
//vale-fixture
8+
[source,terminal]
9+
----
10+
C:\Program Files\
11+
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[source,terminal]
2+
----
3+
$ oc get my lunch
4+
----
5+
6+
[source,terminal]
7+
----
8+
# oc get my lunch
9+
----
10+
11+
.Example
12+
[source,terminal]
13+
----
14+
$ az role assignment create --role "<privileged_role>" \// <1>
15+
----
16+
17+
[source,terminal]
18+
----
19+
sh-4.2# chroot /host
20+
----
21+
22+
[source,terminal]
23+
----
24+
.
25+
├── CODEOWNERS
26+
├── README.md
27+
└── scripts
28+
└── validate-vale-rules.sh
29+
----
30+
31+
[source,terminal]
32+
----
33+
(undercloud)$ cd go/to/path
34+
----
35+
36+
[source,yaml]
37+
----
38+
include::yaml/boundary-clock-ptp-config.yaml[]
39+
----
40+
41+
.Example
42+
[source,terminal]
43+
----
44+
$ az role assignment \
45+
create --role "<privileged_role>"
46+
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: existence
3+
scope: raw
4+
level: error
5+
message: "Code example ends with an unescaped trailing backslash."
6+
action:
7+
name: remove
8+
raw:
9+
- '\\(?=\n----)'

0 commit comments

Comments
 (0)