Since I've been having too many issues with this module, I've been searching high and low for answers.
I ran into this called Coder - a Code Review Module .. I just installed it and it gave me this information for Membership Entity. It's not an answer to the database issues I've been having, but hopefully it will get me in the right direction.
Anyhoo... mods of this module can take a looksy at the info below:
SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MEMBERSHIP_ENTITY.MODULE
membership_entity.moduleseverity: normalreview: sql_limitLine 1184: Use db_query_range() instead of the SQL LIMIT clause (Drupal Docs) [sql_limit]
$result = db_query('SELECT name FROM {users} WHERE uid = :uid LIMIT 1', array(':uid' => $uid))->fetchField();
SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MODULES/MEMBERSHIP_ENTITY_TERM/MEMBERSHIP_ENTITY_TERM.MODULE
membership_entity_term.moduleseverity: normalreview: style_string_spacingLine 662: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms [style_string_spacing]
drupal_add_css(drupal_get_path('module', 'membership_entity_term') .'/css/membership_entity_term.css');
severity: normalreview: sql_limitLine 776: Use db_query_range() instead of the SQL LIMIT clause (Drupal Docs) [sql_limit]
if ($id = db_query('SELECT id FROM {membership_entity_term} t WHERE mid = :mid AND (start <= :now AND end >= :now) LIMIT 1', array(
Comment | File | Size | Author |
---|---|---|---|
#13 | coding_standards-2452841-13.patch | 7.55 KB | lhridley |
#7 | coding-standards_2452841-7.patch | 103.89 KB | lhridley |
#2 | membershipEntity_codeReviewer_21MAR2015.jpg | 235.17 KB | Kebz |
Comments
Comment #1
Kebz CreditAttribution: Kebz commentedI was just about to uninstall this module so that I can re-install it again for the 5 millionth time.. SMH.. lol
Anyhoo.. having this Coder module is very helpful... "Code Review" is now one of the options along with the help/configuration/permissions links found in the modules list.
So I clicked on it again, and it gave me a longer list of things it found... and hopefully will be the answer to many issues.
Comment #2
Kebz CreditAttribution: Kebz commented6-days later ... Where are the maintainers for this mod?? There are errors and warnings found in the code... please review... thanks! =)
Coder provides helpful hints trying to minimize false positives, but offers no guarantees. You are the final arbitrar. If in doubt, please read the Drupal documentation (see review links below and api.drupal.org).
Code Review for Membership Entity
1) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MEMBERSHIP_ENTITY.MODULE
membership_entity.module
2) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MEMBERSHIP_ENTITY.DEVEL.INC
membership_entity.devel.inc
3) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MEMBERSHIP_ENTITY.PAGES.INC
membership_entity.pages.inc
4) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MODULES/MEMBERSHIP_ENTITY_TERM/MEMBERSHIP_ENTITY_TERM.PAGES.INC
membership_entity_term.pages.inc
5) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MODULES/MEMBERSHIP_ENTITY_TERM/VIEWS/VIEWS_HANDLER_FIELD_MEMBERSHIP_TERM_DATETIME.INC
views_handler_field_membership_term_datetime.inc
6) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MODULES/MEMBERSHIP_ENTITY_TERM/VIEWS/VIEWS_HANDLER_RELATIONSHIP_TERM_GROUPWISE_MAX.INC
views_handler_relationship_term_groupwise_max.inc
7) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MODULES/MEMBERSHIP_ENTITY_TYPE/MEMBERSHIP_ENTITY_TYPE.PAGES.INC
membership_entity_type.pages.inc
8) SITES/ALL/MODULES/MEMBERSHIP_ENTITY/MODULES/MEMBERSHIP_ENTITY_TYPE/MEMBERSHIP_ENTITY_TYPE.UI.INC
membership_entity_type.ui.inc
Comment #3
Kebz CreditAttribution: Kebz commentedComment #4
draenen CreditAttribution: draenen at Monarch Digital commentedRan this through https://pareview.sh with the latest code. Report at https://pareview.sh/pareview/https-git.drupal.org-project-membership_ent...
Comment #5
lhridley CreditAttribution: lhridley at Promet Source commentedReassigning, as our team has already started working on the coding standards issues, we're over halfway complete with this.
Comment #6
lhridley CreditAttribution: lhridley at Promet Source commentedFYI -- we are using Coder 8.2.12, PHP_Codesniffer 2.0, and PHP 7.2 for coding standards checks.
I have forked the repository to github, our team will be generating PRs to the main branch, and we will be integrating Travis CI to run checks on all PRs before we merge into the mainline branch. Once we have the coding standards work complete, we'll generate a patch and post it here.
It will be a large patch; we are adding inline documentation as we address the coding standards.
The github repo is public: https://github.com/promet/membership_entity
If you're interested in helping or in working in the github repo, let me know, I'll add you to the contributors.
Comment #7
lhridley CreditAttribution: lhridley at Promet Source commentedPatch attached, please review
Comment #8
lhridley CreditAttribution: lhridley at Promet Source commentedComment #9
lhridley CreditAttribution: lhridley at Promet Source commentedComment #11
draenen CreditAttribution: draenen at Monarch Digital commentedCommitted, thanks! There are still a few reported issues from https://pareview.sh I'd like to work through. Latest report at https://pareview.sh/pareview/https-git.drupal.org-project-membership_ent...
Comment #12
lhridley CreditAttribution: lhridley at Promet Source commentedReassigning to me for additional work
Comment #13
lhridley CreditAttribution: lhridley at Promet Source commentedAdding additional patch to address issues in https://pareview.sh/pareview/https-git.drupal.org-project-membership_ent....
Please review and let me know if there are any other coding standards issues to address.
Comment #14
lhridley CreditAttribution: lhridley at Promet Source commentedComment #15
lhridley CreditAttribution: lhridley at Promet Source commented