lib/fasterer/analyzer.rb in fasterer-0.3.0 vs lib/fasterer/analyzer.rb in fasterer-0.3.1
- old
+ new
@@ -50,12 +50,10 @@
case token
when :defn
scan_method_definitions(element)
when :call, :iter
scan_method_calls(element)
- when :masgn
- scan_parallel_assignment(element)
when :for
scan_for_loop(element)
when :resbody
scan_rescue(element)
end
@@ -73,13 +71,9 @@
method_call_scanner = MethodCallScanner.new(element)
if method_call_scanner.offense_detected?
errors.push(method_call_scanner.offense)
end
- end
-
- def scan_parallel_assignment(element)
- errors.push(Fasterer::Offense.new(:parallel_assignment, element.line))
end
def scan_for_loop(element)
errors.push(Fasterer::Offense.new(:for_loop_vs_each, element.line))
end