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've been using code-style.pl to go over contrib modules and clean them up.
the version in HEAD throws "missing space before '{'" when ${$variable} is used.
This is needed for some situations, and is not really what that regex is looking for.
So, here's a patch against HEAD.
- if (/[^ ]{/ && $program) {
+ if (/[^ |\$]{/ && $program) {
$msg = "missing space before '{'";
}
Comment | File | Size | Author |
---|---|---|---|
code-style.pl__0.patch | 340 bytes | Shiny | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedLooks OK but I'm thinking that a small code comment would help. Having to untangle regex with code comments can be daunting. ;-)
Comment #2
keith.smith CreditAttribution: keith.smith commentedComment #3
catchStill applies if you specify the file. Is code-style.pl still used? Superceded by coder.module?
Comment #4
dpearcefl CreditAttribution: dpearcefl commentedIs this still a problem in current D6?
Comment #5
dpearcefl CreditAttribution: dpearcefl commented