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.
the code-style.pl script can't handle code containing the increment ++ operator.
Comment | File | Size | Author |
---|---|---|---|
#4 | code-style.patch | 669 bytes | killes@www.drop.org |
Comments
Comment #1
(not verified) CreditAttribution: commentedNeed a regular expression genius to fix this. I can't figure it out so any other takers?
Comment #2
barryorourke CreditAttribution: barryorourke commentedI was running an older version of the script.
Comment #3
chx CreditAttribution: chx commentedWell, I am using the latest version ($Id: code-style.pl,v 1.8 2003/12/28 10:40:17 dries Exp $) and the -- operator is not handled. So I have reopened this bug report.
Comment #4
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedDunno if this causes elsewhere, but -- doesn't get reported anymore.
Comment #5
Bèr Kessels CreditAttribution: Bèr Kessels commentedit works for me. itested it with some bogus $me++ and it reports no errors then.
+1 for this one-liner
Comment #6
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #7
(not verified) CreditAttribution: commented