From 30196b78d4088513ec86410bee5d8f1087f82288 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Tue, 24 Dec 2019 13:38:55 +0200 Subject: [PATCH] Added namespace and dropped autoload. See #1 --- composer.json | 5 ----- src/CognitiveComplexity/ruleset.xml | 4 +--- tests/bootstrap.php | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) 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')) {