summaryrefslogtreecommitdiffstats
path: root/core/Command/App/CheckCode.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/App/CheckCode.php')
-rw-r--r--core/Command/App/CheckCode.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/Command/App/CheckCode.php b/core/Command/App/CheckCode.php
index 1effed99566..f787529bef9 100644
--- a/core/Command/App/CheckCode.php
+++ b/core/Command/App/CheckCode.php
@@ -26,6 +26,7 @@
namespace OC\Core\Command\App;
use OC\App\CodeChecker\CodeChecker;
+use OC\App\CodeChecker\DatabaseSchemaChecker;
use OC\App\CodeChecker\EmptyCheck;
use OC\App\CodeChecker\InfoChecker;
use OC\App\CodeChecker\LanguageParseChecker;
@@ -181,6 +182,18 @@ class CheckCode extends Command implements CompletionAwareInterface {
}
$errors = array_merge($errors, $languageErrors);
+
+ $databaseSchema = new DatabaseSchemaChecker();
+ $schemaErrors = $databaseSchema->analyse($appId);
+
+ foreach ($schemaErrors['errors'] as $schemaError) {
+ $output->writeln("<error>$schemaError</error>");
+ }
+ foreach ($schemaErrors['warnings'] as $schemaWarning) {
+ $output->writeln("<comment>$schemaWarning</comment>");
+ }
+
+ $errors = array_merge($errors, $schemaErrors['errors']);
}
$this->analyseUpdateFile($appId, $output);