-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e188439
commit 4530d56
Showing
10 changed files
with
93 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
*.abnf text eol=crlf | ||
*.php text eol=lf | ||
|
||
/tests export-ignore | ||
/doc/grammars export-ignore | ||
/build-cs export-ignore | ||
.github export-ignore | ||
build-cs export-ignore | ||
doc/grammars export-ignore | ||
tests export-ignore | ||
tmp export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.editorconfig export-ignore | ||
.github export-ignore | ||
build.xml export-ignore | ||
phpcs.xml export-ignore | ||
build.xml export-ignore | ||
phpstan.neon export-ignore | ||
build-abnfgen.sh export-ignore | ||
CODE_OF_CONDUCT.md export-ignore | ||
Makefile export-ignore | ||
phpcs.xml export-ignore | ||
phpstan.neon export-ignore | ||
phpunit.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/temp | ||
/tools | ||
/tests/tmp | ||
/vendor | ||
|
||
/composer.lock | ||
composer.lock | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.PHONY: check | ||
check: build-abnfgen lint cs tests phpstan | ||
|
||
.PHONY: tests | ||
tests: | ||
php vendor/bin/phpunit | ||
|
||
.PHONY: lint | ||
lint: | ||
php vendor/bin/parallel-lint --colors \ | ||
src tests \ | ||
--exclude tests/PHPStan/Analyser/data \ | ||
--exclude tests/PHPStan/Rules/Methods/data \ | ||
--exclude tests/PHPStan/Rules/Functions/data | ||
|
||
.PHONY: cs | ||
cs: | ||
composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs | ||
|
||
.PHONY: cs-fix | ||
cs-fix: | ||
php build-cs/vendor/bin/phpcbf | ||
|
||
.PHONY: phpstan | ||
phpstan: | ||
php vendor/bin/phpstan analyse -l 5 -c phpstan.neon src tests | ||
|
||
.PHONY: build-abnfgen | ||
build-abnfgen: | ||
./build-abnfgen.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
beStrictAboutChangesToGlobalState="true" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutTodoAnnotatedTests="true" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="tests/tmp/clover.xml"/> | ||
<text | ||
outputFile="php://stdout" | ||
showUncoveredFiles="true" | ||
showOnlySummary="true" | ||
/> | ||
</report> | ||
</coverage> | ||
|
||
<testsuites> | ||
<testsuite name="PHPStan PHPDoc Parser"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<logging/> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!cache | ||
!.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.* |