Code::TidyAll::Plugin::YAMLFrontMatter(3pm)

Code::TidyAll::Plugin::YAMLFrontMatter3pm

Tidyall plugin for validating yaml front matter

Usage

In your .tidyallrc file:

    [YAMLFrontMatter]
    select = **/*.md
    required_top_level_keys = title layout

Version

version 1.000003

Overview

This is a validator plugin for Code::TidyAll that can be used to check that files have valid YAML Front Matter, like Jekyll et al use.

It will complain if:

There's no YAML Front Matter
The YAML Front Matter isn't valid YAML
There's a UTF-8 BOM at the start of the file
The file isn't encoded in the configured encoding (UTF-8 by default)
The YAML Front Matter is missing one or more configured top level keys
The YAML Front Matter contains circular references

Options

"required_top_level_keys"

Keys that must be present at the top level of the YAML Front Matter.

"encoding"

The encoding the file is in. Defaults to UTF-8 (just like Jekyll 2.0 and later.)

Support

Please report all issues with this code using the GitHub issue tracker at <https://github.com/maxmind/Code-TidyAll-Plugin-YAMLFrontMatter/issues>.

Bugs may be submitted through <https://github.com/maxmind/Code-Tidyall-Plugin-YAMLFrontMatter/issues>.

Contributors

•

Dave Rolsky <[email protected]>

•

Greg Oschwald <[email protected]>

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12–13

Author

Mark Fowler <[email protected]>

From libcode-tidyall-plugin-yamlfrontmatter-perl 1.000003-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.