lib/scss_lint/linter/selector_depth.rb in scss-lint-0.16.1 vs lib/scss_lint/linter/selector_depth.rb in scss-lint-0.17.0
- old
+ new
@@ -37,9 +37,10 @@
separators, simple_sequences = sequence.members.partition do |item|
item.is_a?(String)
end
parent_selectors = simple_sequences.count do |item|
+ next if item.is_a?(Array) # @keyframe percentages end up as Arrays
item.rest.any? { |i| i.is_a?(Sass::Selector::Parent) }
end
# Take the number of simple sequences and subtract one for each sibling
# combinator, as these "combine" simple sequences such that they do not