GHOP #136: Improve coder_format to re-format Drupal 6 core without wrong formattings
Posted January 11th, 2008 by douggreen
Task description
One of the things that has an great impact on Drupal's success is the widely adopted agreement on clean, sophisticated, and well-documented code. In an abstract view, we are not only using a language (PHP), but also using a dialect to articulate what we are doing. This means that core developers and most contrib module maintainers try to ensure that everyone else in the community understands all parts of the application and is able to fix or improve the code without language barriers. Without this solid ground, no one would be able to participate and contribute in the way the Drupal community members are doing. Many patches against Drupal core are holden back or even rejected because of unsuitable code.
To support developers in using the proper syntax, formatting, naming, and adhering to all other development guidelines for Drupal, the Code Review module has been developed, which outputs notices for all code that is considered wrong in terms of Drupal Coding Standards. While Coder does only a code review and leaves you with the results, there is also the coder_format script shipped with the Coder module, that strives to clean and re-format a whole file to adhere to Drupal's Coding Standards.
in
6.x-1.x-dev, Code, task, normal, patch (code needs review), ezyang
To support developers in using the proper syntax, formatting, naming, and adhering to all other development guidelines for Drupal, the Code Review module has been developed, which outputs notices for all code that is considered wrong in terms of Drupal Coding Standards. While Coder does only a code review and leaves you with the results, there is also the coder_format script shipped with the Coder module, that strives to clean and re-format a whole file to adhere to Drupal's Coding Standards.