-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
; Vale configuration file to test the `TrailingBackslash` rule | ||
StylesPath = ../../../styles | ||
MinAlertLevel = suggestion | ||
[*.adoc] | ||
OpenShiftAsciiDoc.TrailingBackslash = YES |
11 changes: 11 additions & 0 deletions
11
.vale/fixtures/OpenShiftAsciiDoc/TrailingBackslash/testinvalid.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//vale-fixture | ||
[source,terminal] | ||
---- | ||
oc get my lunch\ | ||
---- | ||
|
||
//vale-fixture | ||
[source,terminal] | ||
---- | ||
C:\Program Files\ | ||
---- |
39 changes: 39 additions & 0 deletions
39
.vale/fixtures/OpenShiftAsciiDoc/TrailingBackslash/testvalid.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[source,terminal] | ||
---- | ||
$ oc get my lunch | ||
---- | ||
|
||
[source,terminal] | ||
---- | ||
# oc get my lunch | ||
---- | ||
|
||
.Example | ||
[source,terminal] | ||
---- | ||
$ az role assignment create --role "<privileged_role>" \// <1> | ||
---- | ||
|
||
[source,terminal] | ||
---- | ||
sh-4.2# chroot /host | ||
---- | ||
|
||
[source,terminal] | ||
---- | ||
. | ||
├── CODEOWNERS | ||
├── README.md | ||
└── scripts | ||
└── validate-vale-rules.sh | ||
---- | ||
|
||
[source,terminal] | ||
---- | ||
(undercloud)$ cd go/to/path | ||
---- | ||
|
||
[source,yaml] | ||
---- | ||
include::yaml/boundary-clock-ptp-config.yaml[] | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
extends: existence | ||
scope: raw | ||
level: error | ||
message: "Unescaped trailing backslash detected in codeblock." | ||
action: | ||
name: remove | ||
raw: | ||
- '(?<!^----\n.*\n*\w*)(?<!\\)\\\n' |