the code-style.pl script can't handle code containing the increment ++ operator.

CommentFileSizeAuthor
#4 code-style.patch669 byteskilles@www.drop.org
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Need a regular expression genius to fix this. I can't figure it out so any other takers?

barryorourke’s picture

I was running an older version of the script.

chx’s picture

Component: Code » other

Well, 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.

killes@www.drop.org’s picture

FileSize
669 bytes

Dunno if this causes elsewhere, but -- doesn't get reported anymore.

Bèr Kessels’s picture

it works for me. itested it with some bogus $me++ and it reports no errors then.
+1 for this one-liner

Dries’s picture

Status: Needs review » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)