[development] Any script that tries to convert bad code-style modules to good one (as code_style.pl suggests?)

Marcel Partap mpartap at gmx.net
Thu Aug 13 09:49:15 UTC 2009

> Is there any available?
Code Review module does analyze adherence to coding standards, could 
possibly be expanded by a module that allows rewriting the code as 
suggested on screen. For now, you have to do it manually, and most times 
it really is a good idea to thoroughly check the improvement suggestions 
manually - but maybe such a module could implement an easy UI to select 
which types of suggestions should be applied automagically (javascript: 
checkbox for every single change suggestion + checkboxes at the top 
'select all whitespace at EOL to be fixed', 'fix standard Implementation 
of hook_foo(). comment' etc)..

[BTW, KDE's Kate editor is brilliant for editing all drupal code, it has 
good syntax highlighting, autocompletion, regex search and replace, 
opens multiple files, symbol viewer allows navigation by function/class 
definition, can open/save files directly via ftp/sftp/ssh, clearly marks 
tabs and white space at end of line etc.
Also, for comparing directory hierarchies (f.e. updated with installed 
module checkout), kdiff3 is an indispensable tool for maintaining 
oversight over diverging code branches, or simply reviewing changes to 
development version of modules before you put them on your site.
Both tools available for *n*x and windows.]

   "Obstacles are those frightful things you see when you take
    your eyes off your goal."         -- Henry Ford (1863-1947)

    Change the world! Vote: http://hfopi.org/vote-future

More information about the development mailing list