Skip to content

Commit

Permalink
Merge pull request #49 from damien-louis/feature/qa-files-in-subfolder
Browse files Browse the repository at this point in the history
Move qa config files in subfolder
  • Loading branch information
damien-louis authored Dec 10, 2023
2 parents 87fc446 + 58cb993 commit 4687f9f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,27 +120,27 @@ lint-container: ## Lints containers

.PHONY: phpcs
phpcs: ## PHP_CodeSniffer (https://github.com/squizlabs/PHP_CodeSniffer)
$(APP) vendor/bin/phpcs -p -n --colors --standard=.phpcs.xml src
$(APP) vendor/bin/phpcs -p -n --colors --standard=./qa/.phpcs.xml src

.PHONY: phpstan
phpstan: ## Execute phpstan
$(APP) vendor/bin/phpstan --memory-limit=-1 analyse src
$(APP) vendor/bin/phpstan --memory-limit=-1 -c"./qa/phpstan.dist.neon" analyse src

.PHONY: phpinsights
phpinsights: ## PHP Insights (https://phpinsights.com)
$(APP) vendor/bin/phpinsights analyse --no-interaction
$(APP) vendor/bin/phpinsights analyse --config-path="./qa/phpinsights.php" --no-interaction

.PHONY: phpinsights-fix
phpinsights-fix: ## PHP Insights (https://phpinsights.com)
$(APP) vendor/bin/phpinsights analyse --no-interaction --fix
$(APP) vendor/bin/phpinsights analyse --config-path="./qa/phpinsights.php" --no-interaction --fix

.PHONY: php-cs-fixer
php-cs-fixer: ## Execute php-cs-fixer in dry-run mode
$(APP) vendor/bin/php-cs-fixer fix --using-cache=no --verbose --diff --dry-run
$(APP) vendor/bin/php-cs-fixer fix --config=./qa/.php-cs-fixer.dist.php --using-cache=no --verbose --diff --dry-run

.PHONY: php-cs-fixer-apply
php-cs-fixer-apply: ## Execute php-cs-fixer and apply changes
$(APP) vendor/bin/php-cs-fixer fix --using-cache=no --verbose
$(APP) vendor/bin/php-cs-fixer fix --config=./qa/.php-cs-fixer.dist.php --using-cache=no --verbose

##
## —— ✨ Tests ——
Expand Down
4 changes: 2 additions & 2 deletions .php-cs-fixer.dist.php → qa/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
];

$finder = Finder::create()
->in(__DIR__.'/src')
// ->in(__DIR__.'/tests')
->in(__DIR__ . '/../src')
->in(__DIR__.'/../tests')
->notPath('bootstrap.php')
;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4687f9f

Please sign in to comment.