Skip to content

Commit

Permalink
phpmd workflow and php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
terremoth committed Mar 3, 2024
1 parent c60ed74 commit 3c7ded5
Show file tree
Hide file tree
Showing 4 changed files with 850 additions and 119 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ jobs:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: PHP Mess Detector
uses: php-actions/phpmd@v1
with:
php_version: 8.1
path: src/,demos/,tests/
output: text
ruleset: phpmd.xml
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"vimeo/psalm": "^5.0",
"nikic/php-parser": "^4.10",
"squizlabs/php_codesniffer": "*",
"phpmd/phpmd": "@stable"
"phpmd/phpmd": "@stable",
"friendsofphp/php-cs-fixer": "^3.51"
},
"license": "GPL-3.0-or-later",
"autoload": {
Expand Down
Loading

0 comments on commit 3c7ded5

Please sign in to comment.