From: Chad Horohoe Date: Fri, 4 Dec 2009 15:49:06 +0000 (+0000) Subject: Followup r59731: Make it opt-out instead of opt-in X-Git-Tag: 1.31.0-rc.0~38626 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=316efc49b7719a7d9a9641417597d9dae56fec42;p=lhc%2Fweb%2Fwiklou.git Followup r59731: Make it opt-out instead of opt-in --- diff --git a/maintenance/syntaxChecker.php b/maintenance/syntaxChecker.php index bd836720bc..48bbee03bc 100644 --- a/maintenance/syntaxChecker.php +++ b/maintenance/syntaxChecker.php @@ -35,7 +35,7 @@ class SyntaxChecker extends Maintenance { false, true); $this->addOption( 'list-file', 'Text file containing list of files or directories to check', false, true); $this->addOption( 'modified', 'Check only files that were modified (requires SVN command-line client)' ); - $this->addOption( 'code-style', 'Check for code style fixes too, not just syntax validity' ); + $this->addOption( 'syntax-only', 'Check for syntax validity only, skip code style warnings' ); } protected function getDbType() { @@ -55,7 +55,7 @@ class SyntaxChecker extends Maintenance { } else { $this->checkFileWithCli( $f ); } - if( $this->hasOption( 'code-style' ) ) { + if( !$this->hasOption( 'syntax-only' ) ) { $this->checkForMistakes( $f ); } }