diff --git a/.vale/fixtures/RedHat/EnDashes/.vale.ini b/.vale/fixtures/RedHat/EnDashes/.vale.ini new file mode 100644 index 000000000..ddc1e2b80 --- /dev/null +++ b/.vale/fixtures/RedHat/EnDashes/.vale.ini @@ -0,0 +1,5 @@ +; Vale configuration file to test the `EnDashes` rule +StylesPath = ../../../styles +MinAlertLevel = suggestion +[*.adoc] +RedHat.EnDashes = YES diff --git a/.vale/fixtures/RedHat/EnDashes/testinvalid.adoc b/.vale/fixtures/RedHat/EnDashes/testinvalid.adoc new file mode 100644 index 000000000..31991b1a0 --- /dev/null +++ b/.vale/fixtures/RedHat/EnDashes/testinvalid.adoc @@ -0,0 +1 @@ +September - December diff --git a/.vale/fixtures/RedHat/EnDashes/testvalid.adoc b/.vale/fixtures/RedHat/EnDashes/testvalid.adoc new file mode 100644 index 000000000..d9d66d356 --- /dev/null +++ b/.vale/fixtures/RedHat/EnDashes/testvalid.adoc @@ -0,0 +1,4 @@ +numbers 12–15 +pages 100–107 +X'41'–X'FE' +September–December diff --git a/.vale/styles/RedHat/CaseSensitiveTerms.yml b/.vale/styles/RedHat/CaseSensitiveTerms.yml index 03b4b072b..566728155 100644 --- a/.vale/styles/RedHat/CaseSensitiveTerms.yml +++ b/.vale/styles/RedHat/CaseSensitiveTerms.yml @@ -8,6 +8,7 @@ message: Use '%s' rather than '%s'. action: name: replace swap: + "(?