From 37332fbe34286078b5cf2864ac5ba10c507fba56 Mon Sep 17 00:00:00 2001 From: secondskoll Date: Fri, 12 Sep 2025 11:41:06 +1000 Subject: [PATCH 1/6] fix: scope of specific rules --- styles/Canonical/000-US-spellcheck.yml | 2 +- styles/Canonical/004-Canonical-product-names.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/styles/Canonical/000-US-spellcheck.yml b/styles/Canonical/000-US-spellcheck.yml index e6893e1..0c99b05 100644 --- a/styles/Canonical/000-US-spellcheck.yml +++ b/styles/Canonical/000-US-spellcheck.yml @@ -3,7 +3,7 @@ extends: spelling message: "The word '%s' seems to be misspelled." level: error scope: - - summary + - sentence - list - table.header - table.cell diff --git a/styles/Canonical/004-Canonical-product-names.yml b/styles/Canonical/004-Canonical-product-names.yml index 7132ec8..dc100e3 100644 --- a/styles/Canonical/004-Canonical-product-names.yml +++ b/styles/Canonical/004-Canonical-product-names.yml @@ -4,7 +4,7 @@ link: https://docs.ubuntu.com/styleguide/en/#other-canonical-products ignorecase: true level: error scope: - - summary & ~blockquote + - sentence & ~blockquote - list - heading - table.header From 445473421c9d02e86dbe8510d1354c15c306f27c Mon Sep 17 00:00:00 2001 From: secondskoll Date: Fri, 12 Sep 2025 14:46:04 +1000 Subject: [PATCH 2/6] fix: spelling scoping --- styles/Canonical/000-US-spellcheck.yml | 3 --- vale.ini | 10 +++++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/styles/Canonical/000-US-spellcheck.yml b/styles/Canonical/000-US-spellcheck.yml index 0c99b05..fbd4af0 100644 --- a/styles/Canonical/000-US-spellcheck.yml +++ b/styles/Canonical/000-US-spellcheck.yml @@ -11,6 +11,3 @@ dicpath: "config/dictionaries/" dictionaries: - en_US # - en_GB -filters: - - '\.\. (code-block|code|sourcecode)::.*(\n {3,}:\w+:( .+)?\n)*(\n {3,}.*|\n)*(\n^\S)' - - ^```[^\n\{\}]*\n(([^\n`].*\n|\n))*``` diff --git a/vale.ini b/vale.ini index 3a7de98..0f62ce6 100644 --- a/vale.ini +++ b/vale.ini @@ -1,11 +1,9 @@ StylesPath = styles MinAlertLevel = warning Vocab = Canonical -IgnoredScopes = IgnoredClasses = woke-ignore, vale-ignore -[*.{md,txt,rst,html}] - +[*.{md,txt,html}] BasedOnStyles = Canonical # this enumerates all of the current rules with their suggested @@ -48,5 +46,11 @@ TokenIgnores = (:program:`.+?`), (:literal:`.+?`), (:kbd:`.+?`), (:math:`.+?`), TokenIgnores = (:token:`.+?`), (:regexp:`.+?`), (:command:`.+?`), (:option:`.+?`), (:envvar:`.+?`) TokenIgnores = (:vale-ignore:`.+?`), (:woke-ignore:`.+?`) +# Directive names +TokenIgnores = (.. \w+::) + # links defined elsewhere TokenIgnores = (\`\w+\`_) + +# Used to ignore content of specific directives +BlockIgnores = (?s)\.\. (code-block|code|sourcecode):: ?[^\n]*\n( *:[\w-]+: *[^\n]+\n)*\n( +[^\n]+\n|\n)* \ No newline at end of file From a7fc7a9b8975d5412b407b9d5191f4b8badf8dea Mon Sep 17 00:00:00 2001 From: secondskoll Date: Mon, 29 Sep 2025 21:51:18 +1000 Subject: [PATCH 3/6] fix: spelling ignores --- styles/Canonical/000-US-spellcheck.yml | 2 ++ vale.ini | 2 ++ 2 files changed, 4 insertions(+) diff --git a/styles/Canonical/000-US-spellcheck.yml b/styles/Canonical/000-US-spellcheck.yml index fbd4af0..924427f 100644 --- a/styles/Canonical/000-US-spellcheck.yml +++ b/styles/Canonical/000-US-spellcheck.yml @@ -11,3 +11,5 @@ dicpath: "config/dictionaries/" dictionaries: - en_US # - en_GB +filters: + - '\w*[\-_]\w*' \ No newline at end of file diff --git a/vale.ini b/vale.ini index 0f62ce6..8961634 100644 --- a/vale.ini +++ b/vale.ini @@ -48,6 +48,8 @@ TokenIgnores = (:vale-ignore:`.+?`), (:woke-ignore:`.+?`) # Directive names TokenIgnores = (.. \w+::) +# Directive options +TokenIgnores = (:\w+: \w+), (:\w+:) # links defined elsewhere TokenIgnores = (\`\w+\`_) From 345c62b6cdf040874f4e9c286924fe53a6003376 Mon Sep 17 00:00:00 2001 From: secondskoll Date: Tue, 30 Sep 2025 11:59:02 +1000 Subject: [PATCH 4/6] feat: customise spelling filters --- styles/Canonical/000-US-spellcheck.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/styles/Canonical/000-US-spellcheck.yml b/styles/Canonical/000-US-spellcheck.yml index 924427f..ef6ab22 100644 --- a/styles/Canonical/000-US-spellcheck.yml +++ b/styles/Canonical/000-US-spellcheck.yml @@ -11,5 +11,9 @@ dicpath: "config/dictionaries/" dictionaries: - en_US # - en_GB +custom: true filters: - - '\w*[\-_]\w*' \ No newline at end of file + - '\w*_+\w*' + - '[A-Z]{1}[a-z]+[A-Z]+\w+' + - '[^a-zA-Z_-]' + - '[A-Z]+$' \ No newline at end of file From bec38c1bb84bc3c099ef6d43dd5b09dce20f3c13 Mon Sep 17 00:00:00 2001 From: secondskoll Date: Tue, 30 Sep 2025 13:08:11 +1000 Subject: [PATCH 5/6] chore: revert hyphenated words inclusion --- styles/Canonical/000-US-spellcheck.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/styles/Canonical/000-US-spellcheck.yml b/styles/Canonical/000-US-spellcheck.yml index ef6ab22..9059deb 100644 --- a/styles/Canonical/000-US-spellcheck.yml +++ b/styles/Canonical/000-US-spellcheck.yml @@ -11,9 +11,5 @@ dicpath: "config/dictionaries/" dictionaries: - en_US # - en_GB -custom: true filters: - - '\w*_+\w*' - - '[A-Z]{1}[a-z]+[A-Z]+\w+' - - '[^a-zA-Z_-]' - - '[A-Z]+$' \ No newline at end of file + - '\w*_+\w*' \ No newline at end of file From e57ace17ff765c8aa32236b9508016b5727e5d56 Mon Sep 17 00:00:00 2001 From: secondskoll Date: Thu, 2 Oct 2025 13:18:24 +1000 Subject: [PATCH 6/6] feat: remove blockignore --- vale.ini | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vale.ini b/vale.ini index 8961634..2260d33 100644 --- a/vale.ini +++ b/vale.ini @@ -52,7 +52,4 @@ TokenIgnores = (.. \w+::) TokenIgnores = (:\w+: \w+), (:\w+:) # links defined elsewhere -TokenIgnores = (\`\w+\`_) - -# Used to ignore content of specific directives -BlockIgnores = (?s)\.\. (code-block|code|sourcecode):: ?[^\n]*\n( *:[\w-]+: *[^\n]+\n)*\n( +[^\n]+\n|\n)* \ No newline at end of file +TokenIgnores = (\`\w+\`_) \ No newline at end of file