File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ indent_style = tab
1111indent_size = tab
1212tab_width = 4
1313
14- [{ * . json, * . yaml, * . yml, * . md} ]
14+ [* .{ json,yaml,yml,md} ]
1515indent_style = space
1616indent_size = 2
Original file line number Diff line number Diff line change 1- # Not archived
21.docs export-ignore
3- tests export-ignore
2+ .github export-ignore
43.editorconfig export-ignore
54.gitattributes export-ignore
65.gitignore export-ignore
7- .travis.yml export-ignore
86Makefile export-ignore
9- phpstan.neon export-ignore
107README.md export-ignore
8+ phpstan.neon export-ignore
119ruleset.xml export-ignore
10+ tests export-ignore
Original file line number Diff line number Diff line change 66/composer.lock
77
88# Tests
9- /temp
10- /coverage.xml
9+ /tests /tmp
10+ /coverage. *
11+ /tests /** /* .log
12+ /tests /** /* .html
13+ /tests /** /* .expected
14+ /tests /** /* .actual
Original file line number Diff line number Diff line change 1- .PHONY : install qa cs csf phpstan tests coverage-clover coverage-html
2-
1+ .PHONY : install
32install :
43 composer update
54
5+ .PHONY : qa
66qa : phpstan cs
77
8+ .PHONY : cs
89cs :
910ifdef GITHUB_ACTION
10- vendor/bin/codesniffer - q --report=checkstyle src tests | cs2pr
11+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp - q --report=checkstyle src tests | cs2pr
1112else
12- vendor/bin/codesniffer src tests
13+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests
1314endif
1415
16+ .PHONY : csf
1517csf :
16- vendor/bin/codefixer src tests
18+ vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --extensions= " php,phpt " --colors -nsp src tests
1719
20+ .PHONY : phpstan
1821phpstan :
19- vendor/bin/phpstan analyse -l max - c phpstan.neon src
22+ vendor/bin/phpstan analyse -c phpstan.neon
2023
24+ .PHONY : tests
2125tests :
22- vendor/bin/tester -s -p php --colors 1 -C tests/cases
23-
24- coverage-clover :
25- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
26+ vendor/bin/tester -s -p php --colors 1 -C tests/Cases
2627
27- coverage-html :
28- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases
28+ .PHONY : coverage
29+ coverage :
30+ ifdef GITHUB_ACTION
31+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.xml --coverage-src src tests/Cases
32+ else
33+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.html --coverage-src src tests/Cases
34+ endif
Original file line number Diff line number Diff line change 11includes :
2- - vendor/phpstan/phpstan-deprecation-rules/rules.neon
3- - vendor/phpstan/phpstan-nette/extension.neon
4- - vendor/phpstan/phpstan-nette/rules.neon
5- - vendor/phpstan/phpstan-strict-rules/rules.neon
2+ - vendor/contributte/phpstan/phpstan.neon
63
74parameters :
85 level : 9
9- phpVersion : 80000
6+ phpVersion : 80100
107
118 scanDirectories :
129 - src
@@ -16,20 +13,6 @@ parameters:
1613
1714 paths :
1815 - src
16+ - .docs
1917
2018 ignoreErrors :
21- -
22- message : " #^Call to deprecated method validateConfig\\ (\\ ) of class Nette\\\\ DI\\\\ CompilerExtension\\ :\n use getConfigSchema\\ (\\ )$#"
23- count : 1
24- path : src/DI/ComgateExtension24.php
25- -
26- message : " #^Class Nette\\\\ DI\\\\ Statement does not have a constructor and must be instantiated without any parameters\\ .$#"
27- count : 1
28- path : src/DI/ComgateExtension24.php
29- -
30- message : """
31- #^Instantiation of deprecated class Nette\\\\DI\\\\Statement\\:
32- use Nette\\\\DI\\\\Definitions\\\\Statement$#
33- """
34- count : 1
35- path : src/DI/ComgateExtension24.php
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" ?>
2- <ruleset >
3- <!-- Contributte Coding Standard -->
4- <rule ref =" ./vendor/ninjify/coding-standard/contributte .xml" />
1+ <?xml version =" 1.0" encoding = " UTF-8 " ?>
2+ <ruleset name = " Contributte " xmlns : xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi : noNamespaceSchemaLocation = " vendor/squizlabs/php_codesniffer/phpcs.xsd " >
3+ <!-- Rulesets -->
4+ <rule ref =" ./vendor/contributte/qa/ruleset-8.0 .xml" />
55
6- <!-- Specific rules -->
6+ <!-- Rules -->
77 <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" >
88 <properties >
99 <property name =" rootNamespaces" type =" array" >
10- <element key =" src" value =" Contributte\Comgate" />
11- <element key =" tests/cases" value =" Tests\Cases" />
10+ <element key =" src" value =" Contributte\Middlewares" />
11+ <element key =" tests" value =" Tests" />
12+ </property >
13+ <property name =" extensions" type =" array" >
14+ <element key =" php" value =" php" />
15+ <element key =" phpt" value =" phpt" />
1216 </property >
1317 </properties >
1418 </rule >
1519
16- <!-- Exclude folders -->
20+ <!-- Excludes -->
1721 <exclude-pattern >/tests/tmp</exclude-pattern >
1822</ruleset >
You can’t perform that action at this time.
0 commit comments