Module Name
Validators
Drupal version
Drupal 7.x & Drupal 8.x
Link to sandbox page
https://www.drupal.org/sandbox/kab00m/2603248
Module Summary
The "Validators" module (Drupal 7 & 8) allows a developer to validate Drupal forms using Smyfony's Validator component. A form can be validated by adding a #validator parameter.
This module requires Composer Manager (for Drupal 7).
Test results
http://pareview.sh/pareview/httpgitdrupalorgsandboxkab00m2603248git

| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screen Shot 2015-10-28 at 09.09.26.png | 160.63 KB | legovaer |
Comments
Comment #2
legovaerComment #3
legovaerAttached screenshot of the results of SimpleTest.
Comment #4
legovaerComment #5
PA robot commentedWe 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 #6
hesnvabr commentedSome minor errors in coding.
FILE: /var/www/drupal-7-pareview/pareview_temp/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------
6 | WARNING | Line exceeds 80 characters; contains 107 characters
14 | WARNING | Line exceeds 80 characters; contains 100 characters
33 | WARNING | Line exceeds 80 characters; contains 109 characters
34 | WARNING | Line exceeds 80 characters; contains 93 characters
50 | WARNING | Line exceeds 80 characters; contains 144 characters
----------------------------------------------------------------------
FILE: ...w/drupal-7-pareview/pareview_temp/tests/drupal_symfony_validator.test
---------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
---------------------------------------------------------------------------
13 | ERROR | [x] Missing function doc comment
24 | ERROR | [ ] Visibility must be declared on method
| | "testNonExistingConstraint"
32 | ERROR | [ ] Visibility must be declared on method
| | "testNoViolations"
40 | ERROR | [ ] Visibility must be declared on method "testOptions"
58 | ERROR | [ ] Visibility must be declared on method
| | "testBasicConstraints"
106 | ERROR | [ ] Visibility must be declared on method
| | "testStringConstraints"
154 | ERROR | [ ] Visibility must be declared on method
| | "testNumberConstraints"
174 | ERROR | [ ] Visibility must be declared on method
| | "testComparisonConstraints"
180 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
182 | ERROR | [ ] Visibility must be declared on method "testReturnArray"
214 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
---------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------
FILE: ...pal-7-pareview/pareview_temp/tests/drupal_symfony_validator.form.test
---------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 7 LINES
---------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
3 | ERROR | [x] Missing class doc comment
5 | ERROR | [x] Missing function doc comment
13 | ERROR | [x] Missing function doc comment
13 | ERROR | [ ] Visibility must be declared on method "setUp"
16 | ERROR | [x] Whitespace found at end of line
17 | ERROR | [x] Missing function doc comment
17 | ERROR | [ ] Visibility must be declared on method
| | "testSingleValidator"
18 | ERROR | [x] Perl-style comments are not allowed; use "// Comment"
| | instead
---------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------
Comment #7
klausi@pranavbabbar: I think you forgot to change the status. Is this now RTBC after your review or are there application blockers left?
Comment #8
legovaerThanks for the review. I updated the code and the code style violations are all fixed now. There's only one exception and that's the README.md file. This file should be ignored as this is only used by GitHub.
There's some markup code which I can't break down into several lines and thus exceeding the 80 chars / line limit.
Feel free to have another go at your review.
There shouldn't be any application blocker as the functional & unit tests pass.
Comment #9
legovaerComment #10
legovaerComment #11
jrockowitz commentedI have looked over and tested the D8 version of the module at it is a pretty simple but solid concept with good code. I think this is RTBC.
I am not sure about the style or usage of the README.md file. There is no official guide for using README.md files, there is only a recommendation for README.txt. Personally, I am also using README.md files and just try to match the general style guide for README.txt
I did recommend that the module's namespace be changed from drupal_symfony_validator to just validators to match #validators property that is being added to form elements.
Once this module is a full project I am going add examples and support for it to YAML form module. #2693855: Validators
Comment #12
legovaerComment #13
legovaerThe name(space) of the module has been renamed to "validators" instead of "drupal_symfony_validators". Also the README.md has been changed in order to get rid of the drupalcs issues.
RTBC now
Comment #14
legovaerComment #15
klausiPlease don't RTBC your own issues, see the workflow https://www.drupal.org/node/532400
Comment #16
legovaerRight, sorry about that. But #11 already gave the RTBC, I just updated the status.
Comment #17
klausiAh sorry, overlooked that.
Comment #18
legovaerComment #19
vijaycs85yay! good to see it's RTBC. Great to get this in. Thanks to @legovaer for the great work and follow ups...
Comment #20
mlncn commentedThanks for your contribution! Congratulations, you are now a vetted Git user. You can promote this to a full project.
When you create new projects (typically as a sandbox to start) you can then promote them to 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.
Comment #21
vijaycs85Yay! Thank you @mlncn!!!