diff --git a/styles/Canonical/000-US-spellcheck.yml b/styles/Canonical/000-US-spellcheck.yml index e6893e1..9059deb 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 @@ -12,5 +12,4 @@ dictionaries: - en_US # - en_GB filters: - - '\.\. (code-block|code|sourcecode)::.*(\n {3,}:\w+:( .+)?\n)*(\n {3,}.*|\n)*(\n^\S)' - - ^```[^\n\{\}]*\n(([^\n`].*\n|\n))*``` + - '\w*_+\w*' \ No newline at end of file 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 diff --git a/vale.ini b/vale.ini index 3a7de98..2260d33 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,10 @@ TokenIgnores = (:program:`.+?`), (:literal:`.+?`), (:kbd:`.+?`), (:math:`.+?`), TokenIgnores = (:token:`.+?`), (:regexp:`.+?`), (:command:`.+?`), (:option:`.+?`), (:envvar:`.+?`) TokenIgnores = (:vale-ignore:`.+?`), (:woke-ignore:`.+?`) +# Directive names +TokenIgnores = (.. \w+::) +# Directive options +TokenIgnores = (:\w+: \w+), (:\w+:) + # links defined elsewhere -TokenIgnores = (\`\w+\`_) +TokenIgnores = (\`\w+\`_) \ No newline at end of file