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

Commit

Permalink
Correct formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Crump committed Jul 24, 2013
1 parent a056a15 commit fae4d26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/foodcritic/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -459,17 +459,17 @@ def standard_attribute_access(ast, options)
end.inject(:+)
else
type = if options[:type] == :string
'tstring_content'
else
'*[self::symbol or self::dyna_symbol]'
end
'tstring_content'
else
'*[self::symbol or self::dyna_symbol]'
end
expr = '//*[self::aref_field or self::aref][count(method_add_arg) = 0]'
expr += '[count(is_att_type(descendant::var_ref/ident/@value)) =
count(descendant::var_ref/ident/@value)]'
expr += '[is_att_type(descendant::ident'
expr += '[not(ancestor::aref/call)]' if options[:ignore_calls]
expr += "/@value)]/descendant::#{type}"
if options[:type] == :string
if options[:type] == :string
expr += '[count(ancestor::dyna_symbol) = 0]'
end
ast.xpath(expr, AttFilter.new).sort
Expand Down

0 comments on commit fae4d26

Please sign in to comment.