From 0d08349836cf71a57b054992da853262a21e51dd Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:25:09 -0500 Subject: [PATCH] Suppress heading capitalization rule (#5775) * Start applying heading capitalization rules after a period Signed-off-by: Fanit Kolchina * Suppress heading capitalization rule Signed-off-by: Fanit Kolchina --------- Signed-off-by: Fanit Kolchina --- .github/vale/styles/OpenSearch/HeadingCapitalization.yml | 2 ++ .github/vale/tests/test-headings.md | 4 ++++ .vale.ini | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/vale/styles/OpenSearch/HeadingCapitalization.yml b/.github/vale/styles/OpenSearch/HeadingCapitalization.yml index a6b80b9d..d0fd802e 100644 --- a/.github/vale/styles/OpenSearch/HeadingCapitalization.yml +++ b/.github/vale/styles/OpenSearch/HeadingCapitalization.yml @@ -6,5 +6,7 @@ match: $sentence threshold: 1 indicators: - ":" + - "." + - ")" exceptions: - k # ignores lowercase k-NN \ No newline at end of file diff --git a/.github/vale/tests/test-headings.md b/.github/vale/tests/test-headings.md index 6991caf1..7d16ca15 100644 --- a/.github/vale/tests/test-headings.md +++ b/.github/vale/tests/test-headings.md @@ -30,6 +30,10 @@ --- +# 1. This should not be flagged + +--- + # Example: should be flagged --- diff --git a/.vale.ini b/.vale.ini index 2b195b4d..c339995b 100644 --- a/.vale.ini +++ b/.vale.ini @@ -30,7 +30,7 @@ OpenSearch.FailoverNoun = YES OpenSearch.FailoverVerb = YES OpenSearch.FutureTense = NO OpenSearch.HeadingAcronyms = YES -OpenSearch.HeadingCapitalization = YES +OpenSearch.HeadingCapitalization = NO OpenSearch.HeadingColon = YES OpenSearch.HeadingPunctuation = YES OpenSearch.Inclusive = YES