Skip to content
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
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion config/grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ grumphp:
php_check_syntax: ~
phpcs: ~
php_stan: ~
ecs: ~
yaml_lint: ~
json_lint: ~
extensions:
Expand Down
13 changes: 0 additions & 13 deletions config/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ grumphp:
php_stan:
run_on: ['src']
configuration: phpstan.neon
ecs:
config: ecs.php
yaml_lint: ~
json_lint: ~
phpunit: ~
Expand Down
13 changes: 0 additions & 13 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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