mirror of
https://github.com/getgrav/grav.git
synced 2026-02-17 12:07:59 +01:00
New Yaml linter class
This commit is contained in:
@@ -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://');
|
||||
|
||||
Reference in New Issue
Block a user