From 9bf22938be528d91d37015b2f3eb5bda98a20f23 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 4 Sep 2024 10:49:26 +0200 Subject: [PATCH] vale rules update update vale rules to latest --- .vale/styles/RedHat/CaseSensitiveTerms.yml | 15 +++++++-------- .vale/styles/RedHat/Contractions.yml | 2 +- .vale/styles/RedHat/Definitions.yml | 2 ++ .vale/styles/RedHat/GitLinks.yml | 12 ++++++++++++ .vale/styles/RedHat/Hyphens.yml | 1 + .vale/styles/RedHat/PascalCamelCase.yml | 2 ++ .vale/styles/RedHat/PassiveVoice.yml | 7 +++++++ .vale/styles/RedHat/ReadabilityGrade.yml | 11 ++++------- .vale/styles/RedHat/RepeatedWords.yml | 6 +++++- .vale/styles/RedHat/SimpleWords.yml | 1 - .vale/styles/RedHat/Slash.yml | 1 + .vale/styles/RedHat/Spelling.yml | 11 ++++++++--- .vale/styles/RedHat/TermsErrors.yml | 6 ++++-- .vale/styles/RedHat/TermsSuggestions.yml | 10 ++++------ .vale/styles/RedHat/TermsWarnings.yml | 9 ++++++++- .vale/styles/RedHat/UserReplacedValues.yml | 18 +++++++++++++----- .vale/styles/RedHat/Using.yml | 14 ++++++++++++++ 17 files changed, 93 insertions(+), 35 deletions(-) create mode 100644 .vale/styles/RedHat/GitLinks.yml create mode 100644 .vale/styles/RedHat/Using.yml diff --git a/.vale/styles/RedHat/CaseSensitiveTerms.yml b/.vale/styles/RedHat/CaseSensitiveTerms.yml index 08b645d9a..91b6f9a43 100644 --- a/.vale/styles/RedHat/CaseSensitiveTerms.yml +++ b/.vale/styles/RedHat/CaseSensitiveTerms.yml @@ -23,16 +23,16 @@ swap: "DM(?![ -]Multipath)|directory manager": Directory Manager "JBoss Broker|Red Hat Broker|The AMQ Broker": AMQ Broker "JBoss Console|Red Hat Console": AMQ Console - "Kernel(?!-based Virtual Machine| Module Management)": kernel + "Kernel(?!-based Virtual Machine| Module Management| parameters| arguments| packet filtering)": kernel "OCM|(?__': Separate words by underscores in user-replaced values +nonword: true +action: + name: edit + params: + - regex + - "(-)" # pattern + - "_" # replace +tokens: + - '__<[a-z_\x60]+-[\x60a-z_-]+>__' + - '<[a-z_]+-[a-z_-]+>' \ No newline at end of file diff --git a/.vale/styles/RedHat/Using.yml b/.vale/styles/RedHat/Using.yml new file mode 100644 index 000000000..869cdc9b1 --- /dev/null +++ b/.vale/styles/RedHat/Using.yml @@ -0,0 +1,14 @@ +--- +extends: sequence +message: "Use 'by using' instead of 'using' when it follows a noun for clarity and grammatical correctness." +link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/using/ +level: warning +action: + name: edit + params: + - regex + - '(\w+)( using)' # pattern + - "$1 by using" # replace +tokens: + - tag: NN|NNP|NNPS|NNS + - pattern: using