clemens-tolboom / uml-generator-php

http://clemens-tolboom.github.io/uml-generator-php/
MIT License
44 stars 5 forks source link

Add option to skip files #51

Closed clemens-tolboom closed 9 years ago

clemens-tolboom commented 9 years ago

I get an exception

/Users/clemens/Sites/drupal/d8/www/core/vendor/guzzlehttp/guzzle/tests/MimetypesTest.php
PHP Fatal error:  Uncaught exception 'PhpParser\Error' with message 'Syntax error, unexpected T_VARIABLE on line 38' in /Users/clemens/lib/uml-generator-php/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:242
Stack trace:
#0 /Users/clemens/lib/uml-generator-php/bin/oop2json(43): PhpParser\ParserAbstract->parse('<?php\n/*\n * Run...')
#1 {main}
  thrown in /Users/clemens/lib/uml-generator-php/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php on line 242

Fatal error: Uncaught exception 'PhpParser\Error' with message 'Syntax error, unexpected T_VARIABLE on line 38' in /Users/clemens/lib/uml-generator-php/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php on line 242

PhpParser\Error: Syntax error, unexpected T_VARIABLE on line 38 in /Users/clemens/lib/uml-generator-php/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php on line 242

Call Stack:
    0.0003     240872   1. {main}() /Users/clemens/lib/uml-generator-php/bin/oop2json:0
  188.8748    6687344   2. PhpParser\ParserAbstract->parse() /Users/clemens/lib/uml-generator-php/bin/oop2json:43

This had a few problems

clemens-tolboom commented 9 years ago

Reported https://github.com/nikic/PHP-Parser/issues/117

MartijnBraam commented 9 years ago

the json generater now has a --skip option to exclude files and directories