Closed (duplicate)
Project:
Coder
Version:
7.x-2.x-dev
Component:
Review/Rules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2011 at 01:18 UTC
Updated:
3 Sep 2012 at 01:08 UTC
Jump to comment: Most recent file
Comments
Comment #1
danepowell commentedAnd here's an interesting observation- if I change 'file' to an arbitrary string (coder_comment.inc line 70), so that Coder is searching for @asdf instead of @file, Coder properly reports that it's missing in all files EXCEPT for my_module.module.
Comment #2
danepowell commentedOkay, I've figured out a workaround, but I'm not sure it's the right solution- the problem is related to the #filename-not option.
Comment #3
douggreen commentedDid your filename has "patch" in it? Or were you testing a patch file?
Comment #4
danepowell commentedHrm... it's been some time since I looked at this, but I'm quite sure that the file in question was a .module file. I'm not sure why adding
#filename-not' => array('patch'),helped, but it did :)Comment #5
douggreen commentedIt's possible that this is related to #726688: Some comments rules are not trigered in module files, so if your @file was in one of the allowed_extensions but not the php_extensions, it was probably missed.