diff --git a/composer.json b/composer.json index f687fe2..3b43c84 100644 --- a/composer.json +++ b/composer.json @@ -20,11 +20,6 @@ "require" : { "php": ">=7.2" }, - "autoload" : { - "psr-4": { - "Rarst\\PHPCS\\": "src/" - } - }, "require-dev": { "squizlabs/php_codesniffer": "^3.5", "pds/skeleton" : "^1.0" diff --git a/src/CognitiveComplexity/ruleset.xml b/src/CognitiveComplexity/ruleset.xml index 0130f06..36c44b3 100644 --- a/src/CognitiveComplexity/ruleset.xml +++ b/src/CognitiveComplexity/ruleset.xml @@ -1,9 +1,7 @@ - + A cognitive complexity implementation - Analyzer.php - diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 68c1556..78ad58a 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,7 +4,7 @@ use PHP_CodeSniffer\Util\Tokens; -require_once __DIR__ . '/../vendor/autoload.php'; +require_once __DIR__ . '/../src/CognitiveComplexity/Analyzer.php'; require_once __DIR__ . '/../vendor/squizlabs/php_codesniffer/autoload.php'; if (! defined('PHP_CODESNIFFER_VERBOSITY')) {