Repository navigation
chore(deps): update dependency errata-ai/vale to v3.23.0 - #345
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.22.0→3.23.0Release Notes
errata-ai/vale (errata-ai/vale)
v3.23.0Compare Source
Vale 3.23.0 reads a Sphinx project as Sphinx does, reads the markup inside source-code comments, and reads large files in linear time.
Sphinx
Docutils knows only its own directives and roles, and dropped the body of every one it did not know, without a word: the prose in every
versionadded,seealso,tab, orgridwas never linted. Vale now decides the rest by a rule that fits nearly every Sphinx construct: the body of a directive Docutils doesn't define is prose, and the text of a role it doesn't define is code. A:ref:written with a title is linted as its title, and:func:,:class:, and:doc:are left alone. An extension's additions that don't fit the rule go in one section, which the reStructuredText and MyST readers both honor:Nothing needs Sphinx installed. reStructuredText also reads and writes UTF-8 whatever the console's code page, and the Docutils pool now works on Windows.
Docs: Sphinx
The markup inside comments
A tree-sitter View's per-scope
typeis honored, so a Rust///comment is read as Markdown, a Python docstring as reStructuredText, and a Javadoc block as HTML, each with its fenced blocks and inline code skipped:Each language's documentation convention is understood on top of that: the name a Go doc comment opens with and its
[links], rustdoc and KDoc links, Javadoc and JSDoc tags and@exampleblocks, and a docstring's:param:fields are not prose. A comment addressed to a tool,//go:build,//nolint,# noqa,eslint-disable, is not read at all. Kotlin and TOML have grammars.Docs: Code Views, Documentation conventions
Comments in data files
A YAML or TOML file's comments are linted beside the fields its View selects, under the scopes a source file's comments carry, and a
#inside a string is not a comment.Docs: Data Views
Named scopes and metric variables
A scope can be written once in
config/scopes/and used by name in any rule, anddoc(...)accepts Selectors Level 4, relative selectors in:has()included:A
metricformula has the readability scores as variables,quote_words,sentence_length_sd, andround(). Aquotescope reaches the text between quotation marks. A rule can carry its owntests:, andvale test --coveragelists the rules without any.Docs: Named scopes, Selections, metric variables
The package version this Vale supports
vale syncinstalls the release of a package that the running Vale supports, from areleasesmanifest in itsmeta.jsonor from the package's release feed, so a style that uses a newer key never breaks an older Vale. Built-in rules honor[param]settings, andYESandNOread as booleans.Docs: The version Vale supports
Formats
<meta name="description">is prose,<samp>is code, and a figure's caption and alt text are no longer skipped with the figure.#+TITLE:and#+AUTHOR:are prose, headline tags are not, and a footnote is reported where it is written.\omit ... \endomiton one line ends there.Changelog
2753160spelling: Read faster on large files, and read figures and inline QDoc omissions75c04b3feat: Read a data file's comments beside its View, and a page's description0ea6b7afix: Honor a code View's scope type, mask doc-comment conventions, drop directives, and read Org keywords and footnotes in place521deacfix: scalar settings reach the built-in rules, and YES and NO read as boolsf8a0142fix(rst): run the spawned rst2html in Python's UTF-8 modef43fcfcdocs: add discord062bf1dfix(rst): read and write UTF-8 whatever the console's code page9a19239feat: sync installs the release this Vale supports27fa279fix: give a plain-text file a summary, so metric rules and ls-metrics see it62d4da8fix: pool Docutils on Windows, where rst2html is a launcher with no shebangb66f827fix(mdx): keep a code fence after a one-line element out of an HTML block (#1194)559bfe1feat: one [sphinx] section for reStructuredText and MySTe435dabfix: place a script rule's matches by the block they index, not the file33087fefeat: read a plain-text manuscript's chapters, and measure speech and pace6ba35cefeat: read the body of a directive Docutils does not know as prose459d3cdfeat: Selectors Level 4 in doc(...)0cc85dffeat: named scopes, readability variables, and test coveragecea3fcdfix: read a YAML file's comments through a tree-sitter View (#1188)706f858Merge branch 'pr-1192' into v39bcf8d0feat(code): add Kotlin comment extraction (#1183)4bd1bc2fix: place a paragraph that opens with inline content at its own text (#1186)b970c75fix: place a match that wraps into an indented or quoted line (#1185)b9f2ee2fix: locate a match past a multi-byte mask (#1184) (#1193)123e3f9chore(deps): bump github.com/tomwright/dasel/v3 from 3.10.1 to 3.11.2 (#1190)64d2aa2ci: allow benchstat to select its required Go toolchain70f3c13fix: place a summary-scoped alert on the prose it counted275cd4cfix: metric positions in sentence scopecac1949feat: allow metrics to report scoped locations90eaca4fix: put a fragment file back before the raw scope runs (#1182)ba6a2c6feat: add a quote scope for the text between quotation marks520962efix: gather a leaf element's own text for a doc(...) selection on it0904d19feat: accept a selector group at the top level of doc(...)86032fcfix: find a package directory whose case differs from the URL basenameConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.