Closed (fixed)
Project:
Drupal Code Sniffer
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2012 at 14:44 UTC
Updated:
26 May 2012 at 13:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
klausiThere is a white list of core globals in NamingConventions/ValidGlobalSniff.php, feel free to create a bug report if a particular global is missing.
Comment #2
traviscarden commentedAh! Thank you. Then the problem is that
$language_interfaceis missing from the whitelist. Here's a patch.Comment #3
arnested commentedPatch looks fine to me.
$language_interface is a Drupal 8-only global variable. Don't know whether that should be addressed in some special way?
Comment #4
klausiCommitted #2: http://drupalcode.org/project/drupalcs.git/commit/fda9b1d
@arnested: I don't think that special casing is necessary. It only means that if there is a contrib module in D6 or D7 using global $language_interface then drupalcs will not throw an error. This is an unlikely edge case and acceptable.