Releases: errata-ai/vale
This release adds support for linting markup embedded within source code, such as Rust + Markdown (shown below).
/// Creates a new empty `String`.
///
/// Given that the `String` is empty, this will not allocate any initial
/// buffer. While that means that this initial operation is very
/// inexpensive, it may cause excessive allocation later when you add
/// data. If you have an idea of how much data the `String` will hold,
/// consider the [`with_capacity`] method to prevent excessive
/// re-allocation.
///
/// [`with_capacity`]: #method.with_capacity
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// let s = String::new();
/// ```
pub const fn new() -> String {
String { vec: Vec::new() }
}To enable this, use the format association section to specify the combination:
StylesPath = styles
MinAlertLevel = suggestion
[formats]
# Rust + Markdown
rs = md
[*.md]
BasedOnStyles = ValeChangelog
You can now customize the attributes passed to asciidoctor:
StylesPath = <...>
[asciidoctor]
# attribute = value
#
# where 'YES' enables and 'NO' disables.
# enable
experimental = YES
# assign a specific value
attribute-missing = drop
[*]
BasedOnStyles = Vale
# normal config ...Changelog
This release includes a major new feature: the ability to share, sync, and extend Vale configurations through packages. A package is a .zip file that contains a .vale.ini file, a StylesPath folder, or both. You include a package by using the top-level Packages key in your local .vale.ini file:
StylesPath = .github/styles
MinAlertLevel = suggestion
Packages = Microsoft, \
https://github.com/errata-ai/errata.ai/releases/download/v1.0.0/Test.zip
[README.md]
BasedOnStyles = ValeSee Packages 101 for a quick walkthrough.
vale.sh
Vale now also has its own website, https://vale.sh/, which includes a few new resources:
- Rule Explorer: Explore community-made rules for Vale.
- Package Hub: Browse, learn from, or build upon configuration packages for Vale.
- Config Generator: Quickly generate comprehensive configuration files for Vale.
The project now also has a Discord channel.