From 34d4f8e8f85e4a98800c1f6d8e37e23978acf9ee Mon Sep 17 00:00:00 2001 From: Randolph Sapp Date: Fri, 24 Jul 2026 18:24:27 -0500 Subject: [PATCH] ci(vale): enforce known term usage Both Keywriter and DeepSleep term usage were recently solidified. Add a style to get vale to enforce these decisions globally. Signed-off-by: Randolph Sapp --- .github/styles/PSDK/TermsErrors.yml | 10 ++++++++++ .gitignore | 1 + .vale.ini | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .github/styles/PSDK/TermsErrors.yml diff --git a/.github/styles/PSDK/TermsErrors.yml b/.github/styles/PSDK/TermsErrors.yml new file mode 100644 index 000000000..6ad601a84 --- /dev/null +++ b/.github/styles/PSDK/TermsErrors.yml @@ -0,0 +1,10 @@ +--- +extends: substitution +ignorecase: true +level: error +message: "Use '%s' rather than '%s'." +action: + name: replace +swap: + 'deep\s+sleep': DeepSleep + 'key\s+writer': Keywriter diff --git a/.gitignore b/.gitignore index 761bc0cea..32faf0f9a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ build/ # vale configs and intermediary data .github/styles/* !.github/styles/config +!.github/styles/PSDK diff --git a/.vale.ini b/.vale.ini index 3c98382d0..304e44c7c 100644 --- a/.vale.ini +++ b/.vale.ini @@ -6,7 +6,7 @@ Packages = RedHat Vocab = PSDK [*.{md,rst}] -BasedOnStyles = RedHat +BasedOnStyles = RedHat, PSDK RedHat.PascalCamelCase = NO RedHat.GitLinks = NO RedHat.MergeConflictMarkers = NO