Closed (fixed)
Project:
Coder
Version:
7.x-2.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Aug 2013 at 21:18 UTC
Updated:
9 Feb 2014 at 13:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
traviscarden commentedI don't really know what's being done for automated testing for Coder Sniffer, so I took a stab what seemed obvious.
Comment #1.0
traviscarden commentedUpdated issue summary.
Comment #2
traviscarden commentedReroll.
Comment #3
owen barton commentedThe patch is reversed, but otherwise I think this looks good.
If we wanted to get more precise we could check for drush hooks only in *.drush.inc files (splitting Drush functions out like this is a best practice, I feel), but that is pretty minor.
Comment #4
traviscarden commentedOops! Thanks for the catch on the reversed patch, @Owen Barton. Here's a better one.
I agree it would be nice to restrict Drush hooks to *.drush.inc files, but that kind of feels like something for a new, separate sniff--maybe as a follow-up to this one?
Comment #5
owen barton commentedLooks good.
Comment #6
klausiCommitted, thanks! http://drupalcode.org/project/coder.git/commit/c2f47e9