1 / 10

Coder Module: Easily Port Modules to Drupal 7 Stella Power

Coder Module: Easily Port Modules to Drupal 7 Stella Power. History of Coder. Coder Review D4.7.x, 2006 Doug Green Coder Upgrade Deadwood module in D6 Jim Berry (solotandem). Coder Review. Code style Spaces, tabs, indentation string concatenation (6.x and 7.x are different)

selena
Download Presentation

Coder Module: Easily Port Modules to Drupal 7 Stella Power

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Coder Module: Easily Port Modules to Drupal 7 Stella Power

  2. History of Coder Coder Review D4.7.x, 2006 Doug Green Coder Upgrade Deadwood module in D6 Jim Berry (solotandem)

  3. Coder Review Code style Spaces, tabs, indentation string concatenation (6.x and 7.x are different) positioning of curly { } Much more... Comment style Spacings and indentation within comments $Id$ Some doxygen commenting standards Other pedantic stuff (don't blame us)

  4. Coder Review (Cont) SQL Curly braces around {table_names} Capitalisation of SQL keywords Internationalisation (experimental) Security Lots of improvements recently... Overly cautious => false positives Focuses on Cross-Site Scripting (XSS) SQL injection Cross-Site Request Forgery (CSRF)

  5. Coder Review (cont) Upgrade Reviews (4.7.x, 5.x, 6.x, 7.x) Form API Menu File API Database changes Theme changes much much more ... D6 to D7: http://drupal.org/update/modules/6/7 D6 to D7 categorical: http://drupal.org/node/394070

  6. Coder Upgrade Upgrades your modules from 6.x to 7.x Creates a copy of your code, along with a patch file Catches a lot but not everything Puts TODOs in the code Run Coder Review on upgraded code

  7. Demo!

  8. Drush – Drupal Shell drush help coder-review drush coder-review [summary] [style|security|sql|comment|upgrade7x|upgrade6x| upgrade50|upgrade47] [minor|major|critical] [active|core|all|default|<modules>|<patch>] [no-<module>] drush coder-review style all drush coder-review style http://example.com/my.patch “drush coder-upgrade” in progress!

  9. Resources Project page - http://drupal.org/project/coder D6 – D7 conversion: http://drupal.org/node/394070(categorised) http://drupal.org/node/224333(details) Coding Standards -http://drupal.org/coding-standards How to help - http://drupal.org/node/144172 Demo - http://upgrade.boombatower.com/

More Related