diff --git a/.circleci/config.yml b/.circleci/config.yml index c72de28..ca934ed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,14 +3,14 @@ jobs: # Install all dependencies and run check tasks. build_and_test: docker: - - image: circleci/php:7.3.9-cli-node + - image: circleci/php:7.4-cli-node steps: # Check out source code. - checkout # Install composer dependencies. - run: >- export PATH="/home/circleci/.composer/vendor/bin:${PATH}" && - composer install --ignore-platform-reqs + composer install # Run all checkers. - run: ./vendor/bin/grumphp run # Save project with coverage for next step to be analysed. diff --git a/composer.json b/composer.json index cc55734..f7f0a43 100755 --- a/composer.json +++ b/composer.json @@ -40,12 +40,10 @@ "drupal/coder": "^8", "phpcompatibility/php-compatibility": "^9.3", "pheromone/phpcs-security-audit": "^2.0", - "wunderio/ecs-drupal": "^1.0", - "symplify/coding-standard": "^8.3", "squizlabs/php_codesniffer": "^3.4", "dealerdirect/phpcodesniffer-composer-installer": "*", - "mglaman/phpstan-drupal": "^0.12.2", - "phpstan/phpstan-deprecation-rules": "^0.12.2" + "mglaman/phpstan-drupal": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0" }, "autoload": { "psr-4": { diff --git a/config/grumphp.yml b/config/grumphp.yml index 56b35a0..54ec47c 100644 --- a/config/grumphp.yml +++ b/config/grumphp.yml @@ -10,7 +10,6 @@ grumphp: php_check_syntax: ~ phpcs: ~ php_stan: ~ - ecs: ~ yaml_lint: ~ json_lint: ~ extensions: diff --git a/config/phpstan.neon b/config/phpstan.neon index e88a8bb..d199b9b 100644 --- a/config/phpstan.neon +++ b/config/phpstan.neon @@ -10,16 +10,3 @@ parameters: includes: - %currentWorkingDirectory%/vendor/mglaman/phpstan-drupal/extension.neon - %currentWorkingDirectory%/vendor/phpstan/phpstan-deprecation-rules/rules.neon - - %currentWorkingDirectory%/vendor/symplify/coding-standard/packages/cognitive-complexity/config/cognitive-complexity-services.neon - -services: - - - class: Symplify\CodingStandard\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule - tags: [phpstan.rules.rule] - arguments: - maxMethodCognitiveComplexity: 16 - - - class: Symplify\CodingStandard\CognitiveComplexity\Rules\ClassLikeCognitiveComplexityRule - tags: [phpstan.rules.rule] - arguments: - maxClassCognitiveComplexity: 50 diff --git a/grumphp.yml b/grumphp.yml index 4dfe1e1..8ad0a35 100755 --- a/grumphp.yml +++ b/grumphp.yml @@ -11,8 +11,6 @@ grumphp: php_stan: run_on: ['src'] configuration: phpstan.neon - ecs: - config: ecs.php yaml_lint: ~ json_lint: ~ phpunit: ~ diff --git a/phpstan.neon b/phpstan.neon index 9f085eb..24b94e0 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -9,16 +9,3 @@ parameters: - '#Plugin manager has cache backend specified but does not declare cache tags.#' includes: - 'vendor/phpstan/phpstan-deprecation-rules/rules.neon' - - 'vendor/symplify/coding-standard/packages/cognitive-complexity/config/cognitive-complexity-services.neon' - -services: - - - class: Symplify\CodingStandard\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule - tags: [phpstan.rules.rule] - arguments: - maxMethodCognitiveComplexity: 16 - - - class: Symplify\CodingStandard\CognitiveComplexity\Rules\ClassLikeCognitiveComplexityRule - tags: [phpstan.rules.rule] - arguments: - maxClassCognitiveComplexity: 50