Project link: https://www.drupal.org/sandbox/cahodk/2647734
TheaterJS is a JS library that has the tagline: "Typing effect mimicking human behavior."
The module implements:
A basic field formatter implementation of TheaterJS.
The module currently does not support options.
Using the module is easy;
Add a Theater field using the widget type Theater script.
The field can contain text in this format:
actor: text, number, ... ;
For example:
vader:"Luke...", 400;
luke:"What?", 400;
vader:"I am", 200, ".", 200, ".", 200, ". ";
git clone --branch 8.x-1.x https://git.drupal.org/sandbox/cahodk/2647734.git theater
cd theater
Thank you
Manual reviews of other projects
https://www.drupal.org/node/2649550#comment-10745940
https://www.drupal.org/node/2637590#comment-10746006
https://www.drupal.org/node/2633408#comment-10746132
Comments
Comment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxcahodk2647734git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
c.hoyer commentedThanks for the feedback. The PHPCS issues have been resolved. Still two issues remain, but these seems to be caused by the in array function, which is not wrong. It currently says:
FILE: ...l-7-pareview/pareview_temp/src/Plugin/Field/FieldType/TheaterItem.php
---------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------
41 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
44 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces,
| | found 6
But if I change the indent to 10, it will say "Array indentation error, expected 12 spaces but found 10" :)
Comment #4
Helgi Andri Jónsson commentedHi c.hoyer,
Automated Review
There are some blocking issues found during the repeated automated review:
FILE: ...l-7-pareview/pareview_temp/src/Plugin/Field/FieldType/TheaterItem.php
---------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------
41 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
44 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces,
| | found 6
------------------
Manual Review
Individual user account
[Yes] Follows the guidelines for individual user accounts.
No duplication
[Yes] Does not cause module duplication and/or fragmentation.
Master Branch
[Yes] Follows the guidelines for master branch.
Licensing
[Yes] Follows the licensing requirements.
Project Page
[No] Your project page is not very detailed, please have a look at the tips for a great project page, you may also use HTML-tags for better structure. It should at least reflect the same as the README.txt.
README.txt/README.md
[Yes] README is detailed.
[Yes] Follows the guidelines for project length and complexity.
Secure code
[Yes] Did not see any unsafe usage of javascript or php.
Coding style & Drupal API usage
[Yes] Looks good to me although I am not familiar enough with D8 yet.
Best Regards,
Helgi.
Comment #5
c.hoyer commented@Helgi - Thank you for your feedback. I will look into the manual issues you have reported. As per the automated review part, Code_sniffer is simply not able to handle the function wrapped in the array, so I would say this is unsolvable.
Edit: Updated the project description as per Helgis feedback.
Comment #6
c.hoyer commentedComment #7
c.hoyer commentedComment #8
c.hoyer commentedUpdated the code to be issue free in phpcs.
Comment #9
c.hoyer commentedComment #10
almaudoh commented@c.hoyer this is a nice module and I think I'll use it on my site. I have done manual testing of the module and it works fine.
I would suggest the following improvements:
TheaterItem.phpthetheaterValidate()method is private. In Drupal 8, private methods are not encouraged because it makes sub-classing and code reuse more difficult.Comment #11
naveenvalechaAssigning to myself for review that may be tonight
Comment #12
c.hoyer commented@almaudoh - Thanks for the review. I agree about the readability.
@naveenvalecha - I am making some refactoring with PhpUnit, which will be up tonight or possibly tomorrow.
Comment #13
naveenvalecha@c.hoyer
sure, take your time, I'll pick this up after refactoring.update here when you'll be done.
Comment #14
c.hoyer commentedUpdated.
I get some warnings from pareview, but this is because I pass some result by reference.
http://pareview.sh/pareview/httpgitdrupalorgsandboxcahodk2647734git
After the earlier review I have done the following:
Provided a short helpful description on the field textfield widget on what kind of input that takes.
Made all methods protected.
Refactored validation code with PHPUnit.
Changed to short array syntax.
Comment #15
naveenvalechaReview of the 8.x-1.x branch (commit c0dd750):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Manual Review :
@see hook_help()in docs.P.S. : My skills for the unit test cases are still progressing, So leaving it for another review.
Assigning to klausi to give it a final review when he'll get time.
Comment #16
klausiThank you for your reviews. When finishing your review comment also set the issue status either to "needs work" (you found some problems with the project) or "reviewed & tested by the community" (you found no major flaws).
manual review:
But that are critical application blockers, so ...
Thanks for your contribution, c.hoyer!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.