Skip to content
Closed

test #843

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ phpunit:
php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist

phpcs:
cd ../.. && vendor/bin/phpcs -p -s --standard=$(shell pwd)/phpcs.xml
../../vendor/bin/phpcs -p -s --standard=$(shell pwd)/phpcs.xml

stan:
../../vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=2G
Expand Down
7 changes: 4 additions & 3 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?xml version="1.0"?>
<ruleset>
<file>src/</file>
<file>tests/</file>

<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.Files.LineLength.TooLong" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine" />
Expand Down Expand Up @@ -36,4 +33,8 @@
<rule ref="Generic.Metrics.CyclomaticComplexity" />
<rule ref="Generic.Metrics.NestingLevel" />
<rule ref="Squiz.Operators.ValidLogicalOperators" />
<file>.</file>
<exclude-pattern>/(vendor|conf)/</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
</ruleset>
Loading