Commit 069d92e2 authored by Tobias Munk's avatar Tobias Munk

added lint config

parent 4dd3f133
Pipeline #77339 passed with stages
in 8 minutes and 1 second
......@@ -187,14 +187,14 @@ fix-source: ##@development fix source-code linting errors
#
# Fixing source-code lint errors with cs-fixer
#
$(DOCKER_COMPOSE) run --rm $(TESTER_SERVICE) php-cs-fixer fix --format=txt -v ../src
$(DOCKER_COMPOSE) run --rm $(TESTER_SERVICE) php-cs-fixer fix --format=txt -v
lint-source: ##@development run source-code linting
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Liniting source-code with cs-fixer
#
$(DOCKER_COMPOSE) run --rm $(TESTER_SERVICE) php-cs-fixer fix --format=txt -v --dry-run ../src
$(DOCKER_COMPOSE) run --rm $(TESTER_SERVICE) php-cs-fixer fix --format=txt -v --dry-run
lint-metrics: ##@development run source-code metrics
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
......
<?php
$finder = PhpCsFixer\Finder::create()
->exclude(['views','tests','web','config'])
->in(__DIR__.'/../')
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
])
->setFinder($finder)
;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment