Skip to content

Commit

Permalink
cleanup tools folder and include it in main composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLdev committed Mar 4, 2024
1 parent b51d47c commit ef237c4
Show file tree
Hide file tree
Showing 28 changed files with 1,075 additions and 20,145 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@
/public/assets/
/assets/vendor/
###< symfony/asset-mapper ###

###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ phpcs: ## Runs PHP CodeSniffer
@make exec-bash cmd="./vendor/bin/phpcs --version && ./vendor/bin/phpcs --standard=PSR12 --colors -p src tests"

ecs: ## Runs Easy Coding Standard tool
@make exec-bash cmd="./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache check src tests"
@make exec-bash cmd="./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache check src tests/Unit tests/Functional"

ecs-fix: ## Runs Easy Coding Standard tool to fix issues
@make exec-bash cmd="./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache --fix check src tests"
@make exec-bash cmd="./vendor/bin/ecs --version && ./vendor/bin/ecs --clear-cache --fix check src tests/Unit tests/Functional"

phpmetrics: ## Generates phpmetrics static analysis report
ifeq ($(INSIDE_DOCKER_CONTAINER), 1)
Expand Down
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,21 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.51",
"php-coveralls/php-coveralls": "^0.1.0",
"phpmd/phpmd": "^2.15",
"phpmetrics/phpmetrics": "^0.0.1",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "6.4.*",
"symfony/css-selector": "6.4.*",
"symfony/debug-bundle": "6.4.*",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^7.0",
"symfony/stopwatch": "6.4.*",
"symfony/web-profiler-bundle": "6.4.*"
"symfony/web-profiler-bundle": "6.4.*",
"symplify/easy-coding-standard": "^12.1"
}
}
Loading

0 comments on commit ef237c4

Please sign in to comment.