coder_review.module

Version 1.25 (checked in on 2009/09/26 at 23:00:50 by sun)

Developer Module that assists with code review and version upgrade that supports a plug-in extensible hook system so contributed modules can define additional review standards.

Built-in support for:

Credit also to dries:

Constants

NameDescription
SEVERITY_CRITICAL
SEVERITY_MINOR
SEVERITY_NORMAL

Functions

NameDescription
coder_review_admin_settingsImplements settings page.
coder_review_form_alterImplements hook_form_alter().
coder_review_helpImplements hook_help().
coder_review_menuImplements hook_menu().
coder_review_menu_alterImplements hook_menu_alter().
coder_review_pageImplements code review page.
coder_review_page_formImplements hook_form().
coder_review_page_form_submitImplements hook_submit().
coder_review_permissionImplements hook_permission().
coder_review_reviewsImplements hook_reviews().
coder_review_settings_form_submitCallback function for settings page.
coder_review_simpletestImplements hook_simpletest().
coder_review_themeImplements hook_theme().
do_coder_reviewPerform code review for a review array.
do_coder_reviewsPerform batch coder reviews for multiple files.
do_coder_review_callbackAllow for an arbitrary callback function to perform a review.
do_coder_review_grepSearch for a string.
do_coder_review_grep_invertSearch for potentially missing string.
do_coder_review_regexImplements do_coder_review_* for regex match.
theme_coder_reviewFormat coder_review form and results.
theme_coder_review_table_colsImplement theme_cols to theme the radiobuttons and checkboxes form elements in a table column.
theme_coder_review_warningFormat a coder_review warning to be included in results.
theme_coder_review_warning_msgFormat a coder_review warning to be included in results, creating the text.
theme_drupalapiFormat link to Drupal API.
theme_phpapiFormat link to PHP documentation.
_coder_review_default_reviewsHelper functions for settings form.
_coder_review_errorBuilds an error message based on the rule that failed and other information.
_coder_review_get_default_settingsReturns a active settings array for coder_review.
_coder_review_get_reviews_extensionsReturn the extensions used by the reviews, that aren't part of the default extensions.
_coder_review_is_drupal_coreReturn true if $module is in Drupal core.
_coder_review_modifiedReturn last modification timestamp of coder_review and all of its dependencies.
_coder_review_page_form_includesAdd results to form array for display on form page.
_coder_review_read_and_parse_fileParse and read a file into a format easy to validate.
_coder_review_reviewsGet all of the code review modules, including contributions.
_coder_review_search_stringSearch for a string.
_coder_review_settings_arrayGenerate settings array for either modules or themes.
_coder_review_settings_formBuild settings form API array for coder_review.
_coder_review_severityReturn the integer severity magic number for a string severity.
_coder_review_severity_nameReturn string severity for a given error.
_coder_review_warningReturn the formatted warning message from the $rule.