lib/tapioca/commands/todo.rb in tapioca-0.9.4 vs lib/tapioca/commands/todo.rb in tapioca-0.10.0
- old
+ new
@@ -70,16 +70,15 @@
# Taken from https://github.com/sorbet/sorbet/blob/master/gems/sorbet/lib/todo-rbi.rb
sorbet("--print=missing-constants", "--quiet", "--stdout-hup-hack", "--no-error-count")
.out
.strip
.each_line
- .map do |line|
+ .filter_map do |line|
next if line.include?("<")
line.strip
.gsub(/T\.class_of\(([:\w]+)\)/, '\1') # Turn T.class_of(Foo)::Bar into Foo::Bar
end
- .compact
.sort
end
end
end
end