From 93fc7fcdbef0fdd0fda1ea2be9047817bb68524c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 May 2017 15:46:33 +0200 Subject: Check the syntax of the language file Signed-off-by: Joas Schilling --- core/Command/App/CheckCode.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/Command') diff --git a/core/Command/App/CheckCode.php b/core/Command/App/CheckCode.php index aa618b26cec..1effed99566 100644 --- a/core/Command/App/CheckCode.php +++ b/core/Command/App/CheckCode.php @@ -28,6 +28,7 @@ namespace OC\Core\Command\App; use OC\App\CodeChecker\CodeChecker; use OC\App\CodeChecker\EmptyCheck; use OC\App\CodeChecker\InfoChecker; +use OC\App\CodeChecker\LanguageParseChecker; use OC\App\InfoParser; use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface; use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; @@ -171,6 +172,15 @@ class CheckCode extends Command implements CompletionAwareInterface { $infoErrors = $infoChecker->analyse($appId); $errors = array_merge($errors, $infoErrors); + + $languageParser = new LanguageParseChecker(); + $languageErrors = $languageParser->analyse($appId); + + foreach ($languageErrors as $languageError) { + $output->writeln("$languageError"); + } + + $errors = array_merge($errors, $languageErrors); } $this->analyseUpdateFile($appId, $output); -- cgit v1.2.3