Index: trunk/phase3/maintenance/syntaxChecker.php |
— | — | @@ -35,6 +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 | 40 | } |
40 | 41 | |
41 | 42 | protected function getDbType() { |
— | — | @@ -54,7 +55,9 @@ |
55 | 56 | } else { |
56 | 57 | $this->checkFileWithCli( $f ); |
57 | 58 | } |
58 | | - $this->checkForMistakes( $f ); |
| 59 | + if( $this->hasOption( 'code-style' ) ) { |
| 60 | + $this->checkForMistakes( $f ); |
| 61 | + } |
59 | 62 | } |
60 | 63 | $this->output( "\nDone! " . count( $this->mFiles ) . " files checked, " . |
61 | 64 | count( $this->mFailures ) . " failures and " . count( $this->mWarnings ) . |