Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Commit

Permalink
Restrict to descendant axis, refs #31.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Crump committed Jun 6, 2012
1 parent 7e4796f commit b38e49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foodcritic/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def match(node)
# a string or a Node if the resource name is an expression.
def notifications(ast)
return [] unless ast.respond_to?(:xpath)
ast.xpath('//command[ident/@value="notifies" or
ast.xpath('descendant::command[ident/@value="notifies" or
ident/@value="subscribes"]').map do |notifies|

params = notifies.xpath('descendant::method_add_arg[fcall/ident/
Expand Down

0 comments on commit b38e49e

Please sign in to comment.