the module triggers coding-style errors on patterns like :
'a string literal'. $a_variable
(no space before the concatenation operator)
Yet this should be valid style (I can't find right now where this is explicitly mentioned in drupal coding standards handbook, but the whole core code relies on this)
Not actually critical, but it floods the reports with false positives.
Very useful module, BTW. Thanks :-)
Comments
Comment #1
douggreen commentedI don't think that these are false positives. code-style.pl in Drupal core, flags this. Even though this isn't mentioned on the Drupal coding page, I took the fact that this script is in core to mean that it as a standard. If the community disagrees and we can reach some concensus, I'd be happy to remove it.
Comment #2
ChrisKennedy commentedyched is correct, I have had to tweak several core patches to concatenate in the
'blah'. $var .'blah2'style before I got used to it. No consensus needed - this is the required concatenation style for Drupal core.Plus, code-style.pl appears to handle it properly:
Comment #3
douggreen commentedSo, just to make sure, ... I have it backwards!?
I'm going to have to fix all of my code!
Comment #4
douggreen commentedPlease check-out the latest development branch and confirm that I'm properly handling the string concatenation rule. Thanks!
Comment #5
yched commentedWorks like a charm :-)
Thanks !
Comment #6
douggreen commented