Closed (fixed)
Project:
Coder
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Jan 2007 at 02:05 UTC
Updated:
30 Jan 2007 at 13:15 UTC
Another one (much less important) :
The following code :
db_query("CREATE TABLE {foo} (
bar varchar(32),
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
triggers "do not use mixed case (camelCase), use lower case and _"
This is also true with :
"aa
aaAaa"
Comments
Comment #1
douggreen commentedI checked in a patch to the development branch. Could you please check it out. The regex changes are kindof difficult, so if possible, could you run a few additional tests on this just to make sure I didn't muck up something that used to work.
Comment #2
yched commentedThis seems right, now.
A strange thing however :
in order to test this, I added
in one of my files.
Code review then triggers "camelCase" on a completely unrelated part 200 lines below.
Same thing with :
This seems to happen only if the opening " is the first character on the line.
and
(whitespace or indentation tab before "aa)
seem to be OK
Comment #3
douggreen commentedYea, that makes sense - the regex's generally check the character before the quote to make sure it's not another quote or a backslash \. I'm not sure how easy this will be to fix or that if anyone will really write the type of code you just did, that by itself, would be bad style. Is it OK to close the ticket?
Comment #4
yched commentedYes, i guess so.
Comment #5
douggreen commentedThis has actually fixed in subsequent releases. If you'd like to test and confirm this, I'll close the ticket.
Comment #6
(not verified) commented