Skip to content

Commit 818733c

Browse files
committed
Merge pull request #11 from codeclimate/pb-fix-recursion
Include separator in directory expansion check
2 parents b2e6fd7 + a05449c commit 818733c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.PHONY: image
2+
3+
IMAGE_NAME ?= codeclimate/codeclimate-phpmd
4+
5+
image:
6+
docker build --tag codeclimate/codeclimate-phpmd .

Diff for: Runner.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function queueWithIncludePaths()
3535
{
3636
foreach ($this->config['include_paths'] as $f) {
3737
if ($f !== '.' and $f !== '..') {
38-
if (is_dir("/code$f")) {
39-
$this->queuePaths("/code$f", "$f/");
38+
if (is_dir("/code/$f")) {
39+
$this->queuePaths("/code/$f", "$f");
4040
continue;
4141
}
4242
$this->server->addwork(array("/code/$f"));

0 commit comments

Comments
 (0)