-
Notifications
You must be signed in to change notification settings - Fork 440
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
Feature/php parser task #138
Conversation
llaville
commented
Apr 5, 2016
Q | A |
---|---|
Branch | master for features and deprecations |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | not yet |
Documented? | no |
Fixed tickets | comma-separated list of tickets fixed by the PR, if any |
…ified for this blacklist task
…se the short name in the docblocks
… php_parser task/branch
visitors_options: | ||
function_call_visitor: | ||
blacklist: ["var_dump", "error_log"] | ||
whitelist: ["count", "get_class"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly is the difference between blacklist and whitelist. Aren't whitelist items allowed by default?
In the code I see that whitelist returns a notice. But the notice will still make the task fail?
I am not sure what this should do :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitelist
was a try to distinct two groups but, you're right the task fail anyway, so it's not a nice try !
ignore_patterns: [] | ||
``` | ||
|
||
**visitors_options** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could describe what options you can configure per visitor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each class visitor as it's own configuration:
When class named Namespace\To\ClassFooVisitor
the option entry should underscore named as base class name. In this example it will be class_foo_visitor
HI @llaville, The PR is starting to look pretty good. I made some remarks about the code. I think there is something struturally wrong with how the visitors are added, initialized and configured. Maybe this could be the solution to the problems we are facing? One other thing I don't like about current visitors implementation is the constructor and init() method. It looks like both the runtime configuration, the file and the errorlist should be added through the constructor. So maybe the visitors aren't really services, but factory services that can create a vistor during runtime? Can you give me your feedback on these remarks so that we can get the architecture of the parser right? |
Hi @veewee Thanks again for all your remarks and code review. I appreciate a lot ! I'll reply to you ASAP. |
Hello @veewee
I've tried to set timezone to UTC, but I got same result (with or without) |
@veewee Forget my previous help request about spec files. I've solved the first broken spec about timezone settings. I got another PHP in my path that was used but timezone was not defined in UTC on php.ini ! |
Dus you also solve the php_parser can't run on your system error? You probably have to add the parser to the dev dependences in composer. |
I'll push the code updated this evening, when I'll be back from Office |
@llaville Are you planning to finish this PR any time soon? Thanks! |
@llaville Maybe the task has to be configured through services in a first version. I'll try to work on it again when I find some spare time again :) |
We'll continue integrating this task in #218. |