-
Notifications
You must be signed in to change notification settings - Fork 72
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
Adapt run.php to the new phpcs3 API #90
Conversation
The branch has been rebased to the latest 3.5.8 PHPCS3. |
Hi Sara!
|
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.
Hi Víctor!
Thanks for reviewing the patch and raising these interesting comments :-)
- I've rebased the patch to the latest.
- classes/runner.php
- fixed typo (well spotted!)
- I haven't changed anything in this method and I think it's OK as it is :-)
- run.php
- As mentioned previously with your comments about includes, this part has been copied from https://github.com/moodlehq/moodle-local_codechecker/blob/phpcs3/index.php#L28-L34 so if this needs to be changed, I would suggest doing in a separate issue.
- I think this can be done too in a separate issue. For now, the main goal of this patch was to adapt run.php to get it working with PHPCS3.
So the patch is ready again to get your eyes over it ;-)
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.
Thanks, Sara. Your proposal is sensible. Let's go as it is and we will address these questions in other issues.
A separate issue has been created to see if includes in index.php and run.php can be removed: #94 |
yay * 2! |
The run.php file has been reviewed and adapted to use the new runner class.
Some changes have been done to this runner class to add some of the config settings and also to get the interactive mode working ($this->processFile($file) is the method doing the magic and the exception has been added too to exit when 'q' key is pressed).
The following code has been removed to avoid to repeat some information:
$reporter->cacheFileReport($file, $this->config);
The run.php file can be tested using the following commands: