Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
/phpunit.xml.dist export-ignore
/release-latest-versions.sh export-ignore
/source/ export-ignore
/src/ export-ignore
/visitor.php export-ignore
/tests/ export-ignore
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
},
"minimum-stability": "stable",
"autoload-dev": {
"psr-4": {
"PhpStubs\\WordPress\\Core\\": "src/"
},
"classmap": [
"tests/"
]
Expand All @@ -43,9 +46,9 @@
"post-update-cmd": "@composer --working-dir=source/ update --no-interaction",
"cleanup": "git status --short --ignored | sed -n -e 's#^!! ##p' | xargs -r rm -vrf",
"test": [
"@test:cs",
"@test:phpunit",
"@test:phpstan",
"@test:phpunit"
"@test:cs"
],
"test:cs": "phpcs",
"test:cs:fix": "phpcbf",
Expand Down
3 changes: 2 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<ruleset>
<file>finder.php</file>
<file>functionMap.php</file>
<!-- <file>visitor.php</file> -->
<file>src/</file>
<file>visitor.php</file>

<rule ref="PSR12NeutronRuleset">
<exclude name="Generic.Files.LineLength"/>
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
- finder.php
- functionMap.php
- visitor.php
- src/
- tests/
excludePaths:
- tests/data/
Expand Down
Loading