Skip to content

Commit

Permalink
chore: phpmd config standard position (#273)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Mar 21, 2023
1 parent 04f40ce commit 91304f5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .gitattributes
Expand Up @@ -24,8 +24,9 @@ composer.lock text eol=lf diff=json
/examples export-ignore
/docs/dev export-ignore
/infection.json.dist export-ignore
/phpunit.dist.xml export-ignore
/psalm.xml.dist export-ignore
/phpmd.* export-ignore
/phpunit.* export-ignore
/psalm.* export-ignore

# files that are forced to be exported in "dist" release
/README.* -export-ignore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Expand Up @@ -370,4 +370,4 @@ jobs:
php tools/phpmd/vendor/phpmd/phpmd/src/bin/phpmd
src
github
.phpmd.rules.dist.xml
phpmd.xml
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -114,7 +114,7 @@
"test:composer-unused": "@php tools/composer-unused/vendor/icanhazstring/composer-unused/bin/composer-unused --excludeDir=tools",
"test:cs-fixer": "@php tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --dry-run --diff",
"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 ",
"test:phpmd": "@php tools/phpmd/vendor/phpmd/phpmd/src/bin/phpmd src ansi .phpmd.rules.dist.xml",
"test:phpmd": "@php tools/phpmd/vendor/phpmd/phpmd/src/bin/phpmd src ansi phpmd.xml",
"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",
"test:psalm": "@php tools/psalm/vendor/vimeo/psalm/psalm"
},
Expand Down
3 changes: 2 additions & 1 deletion .phpmd.rules.dist.xml → phpmd.xml
Expand Up @@ -3,7 +3,8 @@
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
>
<description>
Rules to apply to PHPMD
</description>
Expand Down

0 comments on commit 91304f5

Please sign in to comment.