diff --git a/.vale/fixtures/RedHat/Symbols/.vale.ini b/.vale/fixtures/RedHat/Symbols/.vale.ini new file mode 100644 index 000000000..e88943002 --- /dev/null +++ b/.vale/fixtures/RedHat/Symbols/.vale.ini @@ -0,0 +1,5 @@ +; Vale configuration file to test the `Symbols` rule +StylesPath = ../../../styles +MinAlertLevel = suggestion +[*.adoc] +RedHat.Symbols = YES \ No newline at end of file diff --git a/.vale/fixtures/RedHat/Symbols/testinvalid.adoc b/.vale/fixtures/RedHat/Symbols/testinvalid.adoc new file mode 100644 index 000000000..4d18d450f --- /dev/null +++ b/.vale/fixtures/RedHat/Symbols/testinvalid.adoc @@ -0,0 +1,6 @@ +Don't use this ! +or this! +Don't use this & that +This + that is not OK. + + diff --git a/.vale/fixtures/RedHat/Symbols/testvalid.adoc b/.vale/fixtures/RedHat/Symbols/testvalid.adoc new file mode 100644 index 000000000..c70c677af --- /dev/null +++ b/.vale/fixtures/RedHat/Symbols/testvalid.adoc @@ -0,0 +1,12 @@ +:!attribute: +:attribute!: +\include::example.adoc[leveloffset=+1] +and is ok. +Use of C++ is OK. +don't use an exclamation mark +kbd:[Ctrl + a] +kbd:[Ctrl + shift + a] +plus symbol is fine +Use the "!" symbol +Use the "&" symbol +Use the "+" symbol diff --git a/.vale/styles/RedHat/Symbols.yml b/.vale/styles/RedHat/Symbols.yml new file mode 100644 index 000000000..1fbf8495f --- /dev/null +++ b/.vale/styles/RedHat/Symbols.yml @@ -0,0 +1,13 @@ +--- +extends: existence +level: warning +scope: raw +link: https://redhat-documentation.github.io/supplementary-style-guide/#_symbols +message: "Do not use the '%s' symbol in original body copy." +nonword: true +tokens: + - '(?