Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable PDS compliance #139

Merged
merged 1 commit into from
Oct 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ script:
- vendor/bin/phpmd src text codesize,unusedcode
- vendor/bin/phploc src
- vendor/bin/phpcpd src
- php churn run
- php bin/churn run

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 2 additions & 2 deletions bootstrap.php → bin/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

if (is_file($autoload = __DIR__.'/vendor/autoload.php')) {
if (is_file($autoload = __DIR__ . '/../vendor/autoload.php')) {
require_once($autoload);
} elseif (is_file($autoload = __DIR__ . '/../../autoload.php')) {
} elseif (is_file($autoload = __DIR__ . '/../../../autoload.php')) {
require_once($autoload);
} else {
fwrite(STDERR,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"bin": [
"churn"
"bin/churn"
],
"require": {
"php": "^7.0",
Expand Down Expand Up @@ -57,7 +57,7 @@
"vendor/bin/phploc src",
"vendor/bin/phpcpd src",
"vendor/bin/phpunit --debug --coverage-clover=coverage.xml",
"php churn run src"
"php bin/churn run src"
],
"fix": [
"vendor/bin/phpcbf -n --standard=phpcs.xml src/",
Expand Down
2 changes: 1 addition & 1 deletion src/Factories/ProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function createGitCommitProcess(File $file): ChurnProcess
*/
public function createCyclomaticComplexityProcess(File $file): ChurnProcess
{
$rootFolder = __DIR__ . '/../../';
$rootFolder = __DIR__ . '/../../bin/';

$process = new Process(
"php {$rootFolder}CyclomaticComplexityAssessorRunner {$file->getFullPath()}"
Expand Down