Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get work PHPMD ... #125

Open
scramatte opened this issue Jan 13, 2019 · 2 comments
Open

Unable to get work PHPMD ... #125

scramatte opened this issue Jan 13, 2019 · 2 comments

Comments

@scramatte
Copy link

PHPMD neither works ...

Pre-Commit tool
Checking composer files...........................0K
Checking json files...............................0K
Running PHPLINT...................................0K
Checking code style with PHPCS....................0K
Checking code mess with PHPMD.....................
Fail

Cannot find specified rule-set "./PmdRules.xml".
@alexgivi
Copy link

https://github.com/bruli/php-git-hooks/blob/master/PmdRules.xml
try to copy this file to your project dir...

@alexssandrog
Copy link

Hi, here is occurring the message below

Checking code mess with PHPMD.....................PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given, called in /home/alex/projects/truckpag/gestao-api/vendor/bruli/php-git-hooks/src/PhpGitHooks/Module/PhpMd/Infrastructure/Tool/PhpMdToolProcessor.php on line 49 and defined in /home/alex/projects/truckpag/gestao-api/vendor/symfony/process/Process.php:140 Stack trace: #0 /home/alex/projects/truckpag/gestao-api/vendor/bruli/php-git-hooks/src/PhpGitHooks/Module/PhpMd/Infrastructure/Tool/PhpMdToolProcessor.php(49): Symfony\Component\Process\Process->__construct('php vendor/bin/...') #1 /home/alex/projects/truckpag/gestao-api/vendor/bruli/php-git-hooks/src/PhpGitHooks/Module/PhpMd/Infrastructure/Tool/PhpMdToolProcessor.php(34): PhpGitHooks\Module\PhpMd\Infrastructure\Tool\PhpMdToolProcessor->execute('index.php', NULL) #2 /home/alex/projects/truckpag/gestao-api/vendor/bruli/php-git-hooks/src/PhpGitHooks/Module/PhpMd/Contract/Command/PhpMdToolHandler.php(51): PhpGitHooks\Module\PhpMd\Infr in /home/alex/projects/truckpag/gestao-api/vendor/symfony/process/Process.php on line 140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants