Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm working on checking all the code snippets from handbook for standards compliance. To make that work, I've created a shell module into which I'm pasting snippet code so I can then check it with coder. It would make life much easier if coder provided a text area in the interface to input arbitrary code for checking.
Comments
Comment #1
sun+1
This could be enhanced with a separate button that invokes coder_format on the pasted input, which would reformat the pasted code instead of reviewing it.
Comment #2
stella CreditAttribution: stella commentedIt should be possible I think if you use the patch review text box. The only catch is that you may need to add a "@@..." line like you would have in a properly formatted patch.
Cheers,
Stella
Comment #3
Barrett CreditAttribution: Barrett commentedUsing the patch checker appears to require at least one file reference and the @@ line. The excerpt below works, but fails (no failure message, just no outcome) if the +++common.inc line is removed
Comment #4
klausiCoder for Drupal 6 is now frozen and only security fixes will be applied. Feel free to update this issue and reopen against 7.x-2.x or 8.x-2.x.