We need to make this module pass coder_review tests. at the moment there are 22 minor(s), 29 critical(s), and 21 normal(s) for coder-review and it would be nice to bring all those to zero and keep it that way.

here you can see the error detail, but also using coder or drush coder-review:

http://qa.drupal.org/pifr/test/219688#tabset-tab-4

Comments

dagmar’s picture

I'm afraid this wouldn't be 100% completed.

We are using eval() in several parts of the code. Also, the messages contains links inside and coder seems to complain about that.

The 29 critical issues are mostly warnings about the use of eval() and about the use of !placeholders inside drupal_set_message.

lucascaro’s picture

you're right @dagmar, you did a great job already moving forward with this. Let's do what we can to get this to a minimum, adding @file comments and trying to replace !variables when we don't need them.

What do you think?

As you said, we can't get to 0 issues. Hopefully we can get rid of (most) eval() calls in the future.

dagmar’s picture

Assigned: Unassigned » dagmar

Sure, make sense. Maybe a wrapper for eval, something like configuration_eval will reduce the list of critical to 3 or 4.

I will try to fix this when I have some time.

dagmar’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new12.87 KB

There is no duplicated code in 2.x is much more easier to get this done. In my local environment I get only 4 minor warnings, all related to the use of eval().

Status: Needs review » Needs work

The last submitted patch, 1693152.coding_standars.4.patch, failed testing.

dagmar’s picture

Status: Needs work » Needs review
StatusFileSize
new12.87 KB

Fixed typo.

lucascaro’s picture

Status: Needs review » Reviewed & tested by the community

awesome to see it passed the coder review in the testbot!

dagmar’s picture

Status: Reviewed & tested by the community » Fixed

Committed 5a58530, 5a45c94, f53907b. Now branch 2.x is passing the coding standars.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.