diff --git a/system/src/Grav/Common/Helpers/YamlLinter.php b/system/src/Grav/Common/Helpers/YamlLinter.php index 3d1af5c00..43bde820b 100644 --- a/system/src/Grav/Common/Helpers/YamlLinter.php +++ b/system/src/Grav/Common/Helpers/YamlLinter.php @@ -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://');