New Yaml linter class

This commit is contained in:
Andy Miller
2019-04-20 17:41:17 -06:00
parent f4cca777c2
commit 9c0de8b0d3

View File

@@ -16,6 +16,14 @@ use Symfony\Component\Yaml\Yaml;
class YamlLinter
{
public static function lint()
{
$errors = static::lintConfig();
$errors = $errors + static::lintPages();
return $errors;
}
public static function lintPages()
{
return static::recurseFolder('page://');