Implement skip checkers and log the currently tested app

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-05-16 16:18:02 -05:00
parent f920dfe09b
commit 6dea5e6aad
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,8 @@ php ./build/htaccess-checker.php
RESULT=$(($RESULT+$?)) RESULT=$(($RESULT+$?))
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
echo "Testing $app"
if if
[ "$app" == "dav" ] || \ [ "$app" == "dav" ] || \
[ "$app" == "encryption" ] || \ [ "$app" == "encryption" ] || \

View File

@ -125,7 +125,10 @@ class CheckCode extends Command implements CompletionAwareInterface {
$output->writeln(" <error>line $line: {$p['disallowedToken']} - {$p['reason']}</error>"); $output->writeln(" <error>line $line: {$p['disallowedToken']} - {$p['reason']}</error>");
} }
}); });
$errors = $codeChecker->analyse($appId); $errors = [];
if(!$input->getOption('skip-checkers')) {
$errors = $codeChecker->analyse($appId);
}
if(!$input->getOption('skip-validate-info')) { if(!$input->getOption('skip-validate-info')) {
$infoChecker = new InfoChecker($this->infoParser); $infoChecker = new InfoChecker($this->infoParser);