Community
Participate
Working Groups
The Drupal coding standards require a comma after the final array item in a multi-line array definition. PDF Code Formatter currently always removes any final comma. Current formatter does: $numbers = array( 1 => "one", 2 => "two", 3 => "three" ); Drupal coding standard needs: $numbers = array( 1 => "one", 2 => "two", 3 => "three", ); This is so that the lines can be easily re-ordered, without breaking the array syntax.
New Gerrit change created: https://git.eclipse.org/r/119522
Gerrit change https://git.eclipse.org/r/119522 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=f32e274d0b48ce096bc6affe5fdc7b64d12ea347
New Gerrit change created: https://git.eclipse.org/r/119622
Gerrit change https://git.eclipse.org/r/119622 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=267bf838d0755e717cfa6dc89a067b85596aa52a
Hi Anthony, I've added a new code formatter option, you'll find it in the code formatter profile under "Line Wrapping" -> "Keep trailing comma". You can try it if you want by downloading latest pdt snapshot (available tomorrow). Thierry.