Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 8 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
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
},
"require": {
"php": "^7.2",
"ext-tokenizer": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4 || ^0.5",
"phpstan/phpdoc-parser": "^0.3",
"slevomat/coding-standard": "^4.8",
"squizlabs/php_codesniffer": "^3.3.2"
"squizlabs/php_codesniffer": "^3.4"
},
"require-dev": {
"ext-mbstring": "*",
"ext-tokenizer": "*",
"lstrojny/functional-php": "^1.8",
"phpstan/phpstan": "^0.10",
"phpstan/phpstan-phpunit": "^0.10",
Expand Down
3 changes: 2 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

<file>src/</file>
<file>tests/</file>
<exclude-pattern>tests/Sniffs/fixtures/*</exclude-pattern>

<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>

</ruleset>
2 changes: 2 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ parameters:
paths:
- src
- tests
excludes_analyse:
- %rootDir%/../../../tests/Sniffs/fixtures/*

includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.3/phpunit.xsd" colors="true"
bootstrap="vendor/autoload.php">
bootstrap="tests/bootstrap.php">

<php>
<const name="PHP_CODESNIFFER_CBF" value="true"/>
Expand All @@ -11,6 +11,7 @@
<testsuites>
<testsuite name="Libero Coding Standard">
<directory suffix=".php">tests</directory>
<exclude>tests/Sniffs/fixtures/</exclude>
</testsuite>
</testsuites>

Expand Down
Loading