diff --git a/.vale/fixtures/RedHat/ObviousTerms/.vale.ini b/.vale/fixtures/RedHat/ObviousTerms/.vale.ini new file mode 100644 index 00000000..d7c0e5fd --- /dev/null +++ b/.vale/fixtures/RedHat/ObviousTerms/.vale.ini @@ -0,0 +1,5 @@ +; Vale configuration file to test the `ObviousTerms` rule +StylesPath = ../../../styles +MinAlertLevel = suggestion +[*.adoc] +RedHat.ObviousTerms = YES diff --git a/.vale/fixtures/RedHat/ObviousTerms/testinvalid.adoc b/.vale/fixtures/RedHat/ObviousTerms/testinvalid.adoc new file mode 100644 index 00000000..1854d553 --- /dev/null +++ b/.vale/fixtures/RedHat/ObviousTerms/testinvalid.adoc @@ -0,0 +1,2 @@ +Enter your user name in the Username field. +Enter your description in the Description field. diff --git a/.vale/fixtures/RedHat/ObviousTerms/testvalid.adoc b/.vale/fixtures/RedHat/ObviousTerms/testvalid.adoc new file mode 100644 index 00000000..e69de29b diff --git a/.vale/styles/RedHat/ObviousTerms.yml b/.vale/styles/RedHat/ObviousTerms.yml new file mode 100644 index 00000000..fd3f2a32 --- /dev/null +++ b/.vale/styles/RedHat/ObviousTerms.yml @@ -0,0 +1,16 @@ +--- +extends: existence +level: suggestion +# link: +message: "Consider not documenting %s because it is self-explanatory." +scope: sentence +# source: +action: + name: remove +tokens: + - 'User field' + - 'Username field' + - 'Password field' + - 'Mail field' + - 'Description field' + - 'Name field'