Contributions API

coder.module

Version

1.88.2.32 (checked in on 2008/03/29 at 23:55:19 by douggreen)

Description

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

Namesort iconDescription
SEVERITY_CRITICAL
SEVERITY_MINOR
SEVERITY_NORMAL

Functions

Namesort iconDescription
coder_admin_settingsImplementation of settings page for Drupal 5.
coder_cronImplementation of hook_cron().
coder_form_alterImplementation of hook_form_alter().
coder_helpImplementation of hook_help().
coder_menuImplementation of hook_menu().
coder_pageImplementation of code review page.
coder_page_formImplementation of hook_form().
coder_page_form_submitImplementation of hook_submit().
coder_permImplementation of hook_perm().
coder_reviewsImplementation of hook_reviews().
coder_settings_form_submitCallback function for settings page in Drupal 5.
coder_themeImplementation of 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_coderFormat coder form and results.
theme_coder_warningFormat a coder warning to be included in results.
theme_drupalapiFormat link to Drupal API.
theme_phpapiFormat link to PHP documentation.
_coder_default_reviewsHelper functions for settings form.
_coder_errorBuilds an error message based on the rule that failed and other information.
_coder_error_msgDoes the actual saving of error to results array and generating its unique numeric id.
_coder_get_default_settingsReturns a active settings array for coder.
_coder_is_drupal_coreReturn true if $module is in Drupal core.
_coder_modifiedReturn last modification timestamp of coder and all of its dependencies.
_coder_page_form_includesAdd results to form array for display on form page.
_coder_read_and_parse_fileParse and read a file into a format easy to validate.
_coder_reviewsGet all of the code review modules, including contributions.
_coder_search_stringSearch for a string.
_coder_settings_arrayGenerate settings array for either modules or themes.
_coder_settings_formBuild settings form API array for coder.
_coder_severityReturn the integer severity magic number for a string severity.
_coder_severity_nameReturn string severity for a given error.