Index: trunk/phase3/maintenance/syntaxChecker.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | false, true); |
37 | 37 | $this->addOption( 'list-file', 'Text file containing list of files or directories to check', false, true); |
38 | 38 | $this->addOption( 'modified', 'Check only files that were modified (requires SVN command-line client)' ); |
39 | | - $this->addOption( 'code-style', 'Check for code style fixes too, not just syntax validity' ); |
| 39 | + $this->addOption( 'syntax-only', 'Check for syntax validity only, skip code style warnings' ); |
40 | 40 | } |
41 | 41 | |
42 | 42 | protected function getDbType() { |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | } else { |
57 | 57 | $this->checkFileWithCli( $f ); |
58 | 58 | } |
59 | | - if( $this->hasOption( 'code-style' ) ) { |
| 59 | + if( !$this->hasOption( 'syntax-only' ) ) { |
60 | 60 | $this->checkForMistakes( $f ); |
61 | 61 | } |
62 | 62 | } |