diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-09 15:46:33 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-16 16:16:07 +0200 |
commit | 93fc7fcdbef0fdd0fda1ea2be9047817bb68524c (patch) | |
tree | 85d23c11983fbbba5b5d771b7e2425ca58f092b2 /core/Command | |
parent | e22b957d7f8705ba87096b05fbb375aca392b076 (diff) | |
download | nextcloud-server-93fc7fcdbef0fdd0fda1ea2be9047817bb68524c.tar.gz nextcloud-server-93fc7fcdbef0fdd0fda1ea2be9047817bb68524c.zip |
Check the syntax of the language file
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/App/CheckCode.php | 10 |
1 files changed, 10 insertions, 0 deletions
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("<error>$languageError</error>"); + } + + $errors = array_merge($errors, $languageErrors); } $this->analyseUpdateFile($appId, $output); |