Skip to content

Commit 5073adf

Browse files
committed
Move the bootstrap inclusion later so the file can override more settings and also be specified in a ruleset.xml file (ref #793)
1 parent 7818a88 commit 5073adf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CodeSniffer/CLI.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -793,11 +793,6 @@ public function process($values=array())
793793
$this->values = $values;
794794
}
795795

796-
// Include bootstrap files.
797-
foreach ($values['bootstrap'] as $bootstrap) {
798-
include $bootstrap;
799-
}
800-
801796
if ($values['generator'] !== '') {
802797
$phpcs = new PHP_CodeSniffer($values['verbosity']);
803798
if ($values['standard'] === null) {
@@ -874,6 +869,11 @@ public function process($values=array())
874869
$this->values['reports'] = $values['reports'];
875870
}
876871

872+
// Include bootstrap files.
873+
foreach ($values['bootstrap'] as $bootstrap) {
874+
include $bootstrap;
875+
}
876+
877877
$phpcs->processFiles($values['files'], $values['local']);
878878

879879
if (empty($values['files']) === true) {

0 commit comments

Comments
 (0)