Skip to content

Commit 70be656

Browse files
committed
Use phpdoc coding-standard
1 parent 4142e22 commit 70be656

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ jobs:
135135
all-tools-${{ github.sha }}-
136136
all-tools-
137137
- name: Code style check
138-
uses: docker://phpdoc/phpcs-ga:latest
139-
env:
140-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141-
with:
142-
args: -d memory_limit=1024M
138+
uses: phpDocumentor/[email protected]
143139

144140
phpstan:
145141
runs-on: ubuntu-latest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ setup: install-phive
1313

1414
.PHONY: phpcs
1515
phpcs:
16-
docker run -it --rm -v${PWD}:/opt/project -w /opt/project phpdoc/phpcs-ga:latest -d memory_limit=1024M
16+
docker run -it --rm -v${PWD}:/opt/project -w /opt/project phpdoc/phpcs-ga:v1.0.0 -s
1717

1818
.PHONY: phpstan
1919
phpstan:

phpcs.xml.dist

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,11 @@
66
<file>tests/unit</file>
77
<exclude-pattern>*/tests/unit/Types/ContextFactoryTest.php</exclude-pattern>
88
<arg value="p"/>
9-
<rule ref="PSR2">
10-
<include-pattern>*\.php</include-pattern>
11-
</rule>
12-
13-
<rule ref="Doctrine">
14-
<exclude name="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint.UselessDocComment" />
15-
</rule>
169

17-
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
18-
<exclude-pattern>*/src/*_.php</exclude-pattern>
10+
<rule ref="phpDocumentor">
1911
</rule>
2012

2113
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
2214
<exclude-pattern>*/src/*/Abstract*.php</exclude-pattern>
2315
</rule>
24-
25-
<rule ref="Generic.Formatting.SpaceAfterNot">
26-
<properties>
27-
<property name="spacing" value="0" />
28-
</properties>
29-
</rule>
3016
</ruleset>

0 commit comments

Comments
 (0)