dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 438 forks source link

Php mess detector - fatal: ambiguous argument #990

Open approached opened 9 years ago

approached commented 9 years ago

Hi@all

i try to use the Php mess detector plugin. But i become every time a error. Has anybody a idea how i can fix it?

Config:

  php_mess_detector:
    path: "app"
    rules:
      - "cleancode"
      - "controversial"
      - "codesize"
      - "design"
      - "naming"
      - "unusedcode"
    allow_failures: true
    zero_config: true # do not make build as failed if something was detected

LOG:

[2015-05-22 13:46:42] RunCommand.INFO: PLUGIN: SUCCESS {"buildID":"49"} []
[2015-05-22 13:46:42] RunCommand.INFO: RUNNING PLUGIN: php_mess_detector {"buildID":"49"} []
[2015-05-22 13:46:42] RunCommand.DEBUG: Looking for binary: phpmd {"buildID":"49"} []
[2015-05-22 13:46:42] RunCommand.DEBUG: Found in vendor/bin: phpmd {"buildID":"49"} []
[2015-05-22 13:46:47] RunCommand.ERROR: fatal: ambiguous argument 'Manual^!': unknown revision or path not in the working tree. Use '--' to separate paths from revisions  {"buildID":"49"} []

....

PLUGIN: SUCCESS
RUNNING PLUGIN: php_mess_detector
fatal: ambiguous argument 'Manual^!': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

Reference: https://github.com/Block8/PHPCI/wiki/PHP-Mess-Detector-Plugin

mavimo commented 9 years ago

@approached What OS are you using? What PHP Installation dir? There is some space in the project folders name?

approached commented 9 years ago

OS:

root@h2429329:~# cat /etc/issue
Debian GNU/Linux 7 \n \l

root@h2429329:~# uname -a
Linux h2429329 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt7-1~bpo70+1 (2015-04-07) x86_64 GNU/Linux

PHP:

root@h2429329:~# which php
/usr/bin/php
root@h2429329:~# which phpmd
/usr/local/bin/phpmd

Final folder:

root@h2429329:~# ls /opt/phpci/PHPCI/build/49/app/

Note: if i run phpmd manuel that works. If i run other php modules it works too.