Skip to content

Commit 91304f5

Browse files
authored
chore: phpmd config standard position (#273)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 04f40ce commit 91304f5

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.gitattributes

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ composer.lock text eol=lf diff=json
2424
/examples export-ignore
2525
/docs/dev export-ignore
2626
/infection.json.dist export-ignore
27-
/phpunit.dist.xml export-ignore
28-
/psalm.xml.dist export-ignore
27+
/phpmd.* export-ignore
28+
/phpunit.* export-ignore
29+
/psalm.* export-ignore
2930

3031
# files that are forced to be exported in "dist" release
3132
/README.* -export-ignore

.github/workflows/php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,4 @@ jobs:
370370
php tools/phpmd/vendor/phpmd/phpmd/src/bin/phpmd
371371
src
372372
github
373-
.phpmd.rules.dist.xml
373+
phpmd.xml

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"test:composer-unused": "@php tools/composer-unused/vendor/icanhazstring/composer-unused/bin/composer-unused --excludeDir=tools",
115115
"test:cs-fixer": "@php tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --dry-run --diff",
116116
"test:infection": "@php -d zend.assertions=1 -d assert.exception=1 -d display_errors=On -d error_reporting=-1 -d log_errors_max_len=0 -d memory_limit=-1 -d xdebug.mode=coverage -d pcov.enabled=1 -d pcov.directory=src tools/infection/vendor/infection/infection/bin/infection ",
117-
"test:phpmd": "@php tools/phpmd/vendor/phpmd/phpmd/src/bin/phpmd src ansi .phpmd.rules.dist.xml",
117+
"test:phpmd": "@php tools/phpmd/vendor/phpmd/phpmd/src/bin/phpmd src ansi phpmd.xml",
118118
"test:phpunit": "@php -d zend.assertions=1 -d assert.exception=1 -d display_errors=On -d error_reporting=-1 -d log_errors_max_len=0 -d memory_limit=-1 -d xdebug.mode=coverage -d pcov.enabled=1 -d pcov.directory=src tools/phpunit/vendor/phpunit/phpunit/phpunit",
119119
"test:psalm": "@php tools/psalm/vendor/vimeo/psalm/psalm"
120120
},

.phpmd.rules.dist.xml renamed to phpmd.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns="http://pmd.sf.net/ruleset/1.0.0"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
6-
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
6+
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
7+
>
78
<description>
89
Rules to apply to PHPMD
910
</description>

0 commit comments

Comments
 (0)