Code review
- Setup environment
- Detect an invalid patch URL
- Detect invalid repository information
- Detect invalid patch format
- Detect a non-applicable patch
- Detect invalid PHP syntax
- Detect a review run failure
- Detect coder flags
Ensure that your code follows the Drupal standard and passes a coder review.
- Complete coder review with all passed
2 minor(s), 2 critical(s), and 3 normal(s)
Non-pass
| Test name | Minor | Critical | Normal |
question_answer-answer.tpl.php | 0 | 0 | 2 |
| Message | Group | Filename | Line | Function | Status |
| @file block missing (Drupal Docs) | Other | question_answer-answer.tpl.php | -1 | N/A |  |
| string concatenation should be formatted with a space separating the operators (dot .) and non-quote terms | Other | question_answer-answer.tpl.php | 3 | N/A |  |
|
question_answer.module | 2 | 1 | 0 |
| Message | Group | Filename | Line | Function | Status |
| in most cases, replace the string function with the drupal_ equivalent string functions | Other | question_answer.module | 115 | N/A |  |
| There should be no trailing spaces | Other | question_answer.module | 163 | N/A |  |
| Potential problem: drupal_set_message() only accepts filtered text, be sure all !placeholders for $variables in t() are fully sanitized using check_plain(), filter_xss() or similar. (Drupal Docs) | Other | question_answer.module | 268 | N/A |  |
|
question_answer.pages.inc | 0 | 1 | 1 |
| Message | Group | Filename | Line | Function | Status |
| Potential problem: drupal_set_message() only accepts filtered text, be sure to use check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized. | Other | question_answer.pages.inc | 28 | N/A |  |
| Use "elseif" in place of "else if" | Other | question_answer.pages.inc | 67 | N/A |  |
|
All
| Test name | Minor | Critical | Normal |
question_answer-answer.tpl.php | 0 | 0 | 2 |
| Message | Group | Filename | Line | Function | Status |
| @file block missing (Drupal Docs) | Other | question_answer-answer.tpl.php | -1 | N/A |  |
| string concatenation should be formatted with a space separating the operators (dot .) and non-quote terms | Other | question_answer-answer.tpl.php | 3 | N/A |  |
|
question_answer.install | 0 | 0 | 0 |
question_answer.module | 2 | 1 | 0 |
| Message | Group | Filename | Line | Function | Status |
| in most cases, replace the string function with the drupal_ equivalent string functions | Other | question_answer.module | 115 | N/A |  |
| There should be no trailing spaces | Other | question_answer.module | 163 | N/A |  |
| Potential problem: drupal_set_message() only accepts filtered text, be sure all !placeholders for $variables in t() are fully sanitized using check_plain(), filter_xss() or similar. (Drupal Docs) | Other | question_answer.module | 268 | N/A |  |
|
question_answer.pages.inc | 0 | 1 | 1 |
| Message | Group | Filename | Line | Function | Status |
| Potential problem: drupal_set_message() only accepts filtered text, be sure to use check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized. | Other | question_answer.pages.inc | 28 | N/A |  |
| Use "elseif" in place of "else if" | Other | question_answer.pages.inc | 67 | N/A |  |
|