File tree Expand file tree Collapse file tree 4 files changed +3774
-0
lines changed
Expand file tree Collapse file tree 4 files changed +3774
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+
3+ use ApiClients \Tools \CsFixerConfig \PhpCsFixerConfig ;
4+
5+ return (function ()
6+ {
7+ $ path = __DIR__ . DIRECTORY_SEPARATOR . 'src ' ;
8+
9+ return PhpCsFixerConfig::create ()
10+ ->setFinder (
11+ PhpCsFixer \Finder::create ()
12+ ->in ($ path )
13+ ->append ([$ path ])
14+ )
15+ ->setUsingCache (false )
16+ ;
17+ })();
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " api-clients/cs-fixer-config" ,
3+ "description" : " friendsofphp/php-cs-fixer config" ,
4+ "license" : " MIT" ,
5+ "authors" : [
6+ {
7+ "name" : " Cees-Jan Kiewiet" ,
8+ "email" : " ceesjank@gmail.com"
9+ }
10+ ],
11+ "require" : {
12+ "php" : " ^7.0" ,
13+ "friendsofphp/php-cs-fixer" : " ^2.5"
14+ },
15+ "require-dev" : {
16+ "api-clients/test-utilities" : " ^4.3"
17+ },
18+ "config" : {
19+ "platform" : {
20+ "php" : " 7.0"
21+ },
22+ "sort-packages" : true
23+ },
24+ "autoload" : {
25+ "psr-4" : {
26+ "ApiClients\\ Tools\\ CsFixerConfig\\ " : " src/"
27+ }
28+ },
29+ "autoload-dev" : {
30+ "psr-4" : {
31+ "ApiClients\\ Tests\\ Tools\\ CsFixerConfig\\ " : " tests/"
32+ }
33+ },
34+ "scripts" : {
35+ "post-update-cmd" : [
36+ " composer normalize"
37+ ],
38+ "post-install-cmd" : [
39+ " composer normalize"
40+ ],
41+ "ensure-installed" : " composer install --ansi -n -q" ,
42+ "cs" : [
43+ " @ensure-installed" ,
44+ " php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating"
45+ ],
46+ "cs-fix" : [
47+ " @ensure-installed" ,
48+ " php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating"
49+ ],
50+ "unit" : [
51+ " @ensure-installed" ,
52+ " phpunit --colors=always -c phpunit.xml.dist"
53+ ],
54+ "unit-coverage" : [
55+ " @ensure-installed" ,
56+ " phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
57+ ],
58+ "lint-php" : [
59+ " @ensure-installed" ,
60+ " parallel-lint --exclude vendor ."
61+ ],
62+ "infection" : [
63+ " @ensure-installed" ,
64+ " infection --ansi --threads=4"
65+ ],
66+ "qa-all" : [
67+ " composer validate --ansi" ,
68+ " composer normalize --ansi" ,
69+ " @lint-php" ,
70+ " @cs" ,
71+ " @unit"
72+ ],
73+ "qa-all-extended" : [
74+ " composer validate --ansi" ,
75+ " composer normalize --ansi" ,
76+ " @lint-php" ,
77+ " @cs" ,
78+ " @unit-coverage" ,
79+ " @infection"
80+ ],
81+ "qa-windows" : [
82+ " @lint-php" ,
83+ " @cs" ,
84+ " @unit"
85+ ],
86+ "qa-ci" : [
87+ " @unit"
88+ ],
89+ "qa-ci-extended" : [
90+ " @qa-all-extended"
91+ ],
92+ "qa-ci-windows" : [
93+ " @qa-windows"
94+ ],
95+ "qa-contrib" : [
96+ " @qa-all"
97+ ],
98+ "ci-coverage" : [
99+ " if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi"
100+ ]
101+ }
102+ }
You can’t perform that action at this time.
0 commit comments