Skip to content

Commit 229b9b5

Browse files
committed
Repo: modernize
1 parent 936f8ef commit 229b9b5

File tree

5 files changed

+26
-20
lines changed

5 files changed

+26
-20
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ tests export-ignore
55
.gitattributes export-ignore
66
.gitignore export-ignore
77
.travis.yml export-ignore
8-
codeception.yml export-ignore
98
Makefile export-ignore
109
phpstan.neon export-ignore
1110
README.md export-ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77

88
# Tests
99
/temp
10+
/coverage.html
1011
/coverage.xml

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: install qa cs csf phpstan tests coverage-clover coverage-html
1+
.PHONY: install qa cs csf phpstan tests coverage
22

33
install:
44
composer update
@@ -7,7 +7,7 @@ qa: phpstan cs
77

88
cs:
99
ifdef GITHUB_ACTION
10-
vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
10+
vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
1111
else
1212
vendor/bin/codesniffer src tests
1313
endif
@@ -16,16 +16,17 @@ csf:
1616
vendor/bin/codefixer src tests
1717

1818
phpstan:
19-
vendor/bin/phpstan analyse -l 8 -c phpstan.neon src
19+
vendor/bin/phpstan analyse -c phpstan.neon
2020

2121
tests:
2222
vendor/bin/codecept build
2323
vendor/bin/codecept run --debug
2424

25-
coverage-clover:
25+
coverage:
26+
ifdef GITHUB_ACTION
2627
vendor/bin/codecept build
2728
phpdbg -qrr vendor/bin/codecept run --coverage-xml
28-
29-
coverage-html:
29+
else
3030
vendor/bin/codecept build
3131
phpdbg -qrr vendor/bin/codecept run --coverage-html
32+
endif

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ includes:
66
- extension.neon
77

88
parameters:
9+
level: 9
10+
paths:
11+
- src
12+
913
excludePaths:
1014
- %currentWorkingDirectory%/tests/_*
1115

ruleset.xml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
<?xml version="1.0"?>
22
<ruleset name="Contributte">
33
<!-- Contributte Coding Standard -->
4-
<rule ref="vendor/ninjify/coding-standard/contributte.xml">
4+
<rule ref="vendor/ninjify/coding-standard/contributte.xml">
55
<exclude name="SlevomatCodingStandard.Classes.UnusedPrivateElements.WriteOnlyProperty"/>
6-
</rule>
6+
</rule>
77

88
<!-- Specific rules -->
9-
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
10-
<properties>
11-
<property name="rootNamespaces" type="array" value="
12-
src=>Contributte\Codeception
13-
"/>
14-
</properties>
15-
</rule>
9+
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
10+
<properties>
11+
<property name="rootNamespaces" type="array">
12+
<element key="src" value="Contributte\Codeception"/>
13+
<element key="tests" value="Tests"/>
14+
</property>
15+
</properties>
16+
</rule>
1617

17-
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName">
18-
<exclude-pattern>/tests/functional</exclude-pattern>
19-
</rule>
18+
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName">
19+
<exclude-pattern>/tests/functional</exclude-pattern>
20+
</rule>
2021

21-
<!-- Exclude folders -->
22+
<!-- Exclude folders -->
2223
<exclude-pattern>/tests/_output</exclude-pattern>
2324
<exclude-pattern>/tests/_support</exclude-pattern>
2425
<exclude-pattern>/tests/_temp</exclude-pattern>

0 commit comments

Comments
 (0)