Skip to content

Commit f2b50f7

Browse files
committed
Use phpDoc coding-standard
1 parent 6fddfb4 commit f2b50f7

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

.github/workflows/push.yml

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

147143
phpstan:
148144
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${CURDIR}:/opt/project -w /opt/project phpdoc/phpcs-ga:latest -d memory_limit=1024M -s
16+
docker run -it --rm -v${CURDIR}:/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 & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,13 @@
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>
129

13-
<rule ref="Doctrine">
14-
<exclude name="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint.UselessDocComment" />
15-
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame" />
16-
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType" />
17-
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName" />
10+
<rule ref="phpDocumentor">
1811
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint" />
1912
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint" />
2013
</rule>
2114

22-
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
23-
<exclude-pattern>*/src/phpDocumentor/Reflection/PrettyPrinter.php</exclude-pattern>
24-
</rule>
25-
26-
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
27-
<exclude-pattern>*/src/*_.php</exclude-pattern>
28-
<exclude-pattern>*/tests/*_Test.php</exclude-pattern>
29-
</rule>
30-
3115
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
3216
<exclude-pattern>*/src/*/Abstract*.php</exclude-pattern>
3317
</rule>
34-
35-
<rule ref="Generic.Formatting.SpaceAfterNot">
36-
<properties>
37-
<property name="spacing" value="0" />
38-
</properties>
39-
</rule>
40-
4118
</ruleset>

0 commit comments

Comments
 (0)